You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

35 lines
723 B

  1. name: Python package
  2. on:
  3. push:
  4. branches: [ master ]
  5. pull_request:
  6. branches: [ master ]
  7. jobs:
  8. build:
  9. runs-on: ubuntu-latest
  10. strategy:
  11. max-parallel: 4
  12. matrix:
  13. python-version: [3.6, 3.7, 3.8, 3.9]
  14. steps:
  15. - uses: actions/checkout@v1
  16. - name: Set up Python ${{ matrix.python-version }}
  17. uses: actions/setup-python@v1
  18. with:
  19. python-version: ${{ matrix.python-version }}
  20. - name: Install dependencies
  21. run: |
  22. python -m pip install --upgrade pip
  23. pip install pipenv
  24. pipenv install --dev --system
  25. - name: Lint with flake8
  26. run: |
  27. make flake8
  28. - name: Django test
  29. run: |
  30. python manage.py test