test.yaml 1.2 KB

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