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.
 
 
 
 
 
 

34 lines
697 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.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 -r requirements-dev.txt
  24. - name: Lint with flake8
  25. run: |
  26. make flake8-in-ci
  27. - name: Django test
  28. run: |
  29. make test-in-ci