1
0

test.yaml 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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.7"
  16. - "3.8"
  17. - "3.9"
  18. - "3.10"
  19. netapi:
  20. - "cherrypy"
  21. - "tornado"
  22. salt:
  23. - "v3004.2"
  24. - "v3005.1"
  25. - "v3006.0"
  26. - "master"
  27. exclude:
  28. - py: "3.10"
  29. salt: "v3004.2"
  30. - py: "3.10"
  31. salt: "v3005.1"
  32. steps:
  33. - name: Setup python for test ${{ matrix.py }}
  34. uses: actions/setup-python@v4
  35. with:
  36. python-version: ${{ matrix.py }}
  37. - uses: actions/checkout@v3
  38. - name: Install setuptools_scm
  39. run: python -m pip install setuptools_scm
  40. - name: Install tox
  41. run: python -m pip install tox
  42. - name: Install dependencies
  43. run: sudo apt update && sudo apt install -y libc6-dev libffi-dev gcc git openssh-server libzmq3-dev
  44. env:
  45. DEBIAN_FRONTEND: noninteractive
  46. - name: Setup tests
  47. run: tox --notest -e py${{ matrix.py }}-${{ matrix.netapi }}-${{ matrix.salt }}
  48. - name: Run tests
  49. run: tox -e py${{ matrix.py }}-${{ matrix.netapi }}-${{ matrix.salt }}