test.yaml 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. steps:
  28. - name: Setup python for test ${{ matrix.py }}
  29. uses: actions/setup-python@v4
  30. with:
  31. python-version: ${{ matrix.py }}
  32. - uses: actions/checkout@v3
  33. - name: Install setuptools_scm
  34. run: python -m pip install setuptools_scm
  35. - name: Install tox
  36. run: python -m pip install tox
  37. - name: Install dependencies
  38. run: sudo apt update && sudo apt install -y libc6-dev libffi-dev gcc git openssh-server libzmq3-dev
  39. env:
  40. DEBIAN_FRONTEND: noninteractive
  41. - name: Setup tests
  42. run: tox --notest -e py${{ matrix.py }}-${{ matrix.netapi }}-${{ matrix.salt }}
  43. - name: Run tests
  44. run: tox -e py${{ matrix.py }}-${{ matrix.netapi }}-${{ matrix.salt }}