test.yaml 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. name: test
  2. on:
  3. push:
  4. pull_request:
  5. schedule:
  6. - cron: "0 8 * * *"
  7. jobs:
  8. test:
  9. name: test ${{ matrix.py }} - ${{ matrix.netapi }} - ${{ matrix.salt }}
  10. runs-on: ubuntu-20.04
  11. strategy:
  12. fail-fast: false
  13. matrix:
  14. py:
  15. - "3.5"
  16. - "3.6"
  17. - "3.7"
  18. - "3.8"
  19. netapi:
  20. - "cherrypy"
  21. - "tornado"
  22. salt:
  23. - "v3004.2"
  24. - "v3005.1"
  25. - "master"
  26. exclude:
  27. - salt: master
  28. py: "3.5"
  29. - salt: master
  30. py: "3.6"
  31. steps:
  32. - name: Setup python for test ${{ matrix.py }}
  33. uses: actions/setup-python@v4
  34. with:
  35. python-version: ${{ matrix.py }}
  36. - uses: actions/checkout@v3
  37. - name: Install setuptools_scm
  38. run: python -m pip install setuptools_scm
  39. - name: Install tox
  40. run: python -m pip install tox
  41. - name: Install dependencies
  42. run: sudo apt update && sudo apt install -y libc6-dev libffi-dev gcc git openssh-server libzmq3-dev
  43. env:
  44. DEBIAN_FRONTEND: noninteractive
  45. - name: Setup tests
  46. run: tox --notest -e py${{ matrix.py }}-${{ matrix.netapi }}-${{ matrix.salt }}
  47. - name: Run tests
  48. run: tox -e py${{ matrix.py }}-${{ matrix.netapi }}-${{ matrix.salt }}