test.yml 981 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. name: Linux
  2. # Run on PR requests. And on master itself.
  3. on:
  4. push:
  5. branches:
  6. - master
  7. pull_request:
  8. jobs:
  9. TestLinux:
  10. name: Linux, Python ${{ matrix.python }}
  11. runs-on: ubuntu-latest
  12. strategy:
  13. fail-fast: false
  14. matrix:
  15. include:
  16. # 2019
  17. - python: 3.8
  18. pins: ""
  19. # 2021
  20. - python: 3.9
  21. pins: ""
  22. # 2022
  23. - python: "3.10"
  24. pins: ""
  25. # current
  26. - python: "3.11"
  27. pins: ""
  28. steps:
  29. - uses: actions/checkout@v3
  30. - name: Set up Python ${{ matrix.python }}
  31. uses: actions/setup-python@v4
  32. with:
  33. python-version: ${{ matrix.python }}
  34. - name: Install python dependencies
  35. run: |
  36. pip install --disable-pip-version-check --upgrade pip setuptools
  37. pip install -e .[test] ${{ matrix.pins }}
  38. pip list
  39. - name: Run tests
  40. run: pytest --cov