unit-tests.yml 755 B

1234567891011121314151617181920212223242526272829303132333435
  1. name: Coriolis Unit Tests
  2. on:
  3. workflow_dispatch:
  4. pull_request:
  5. branches: [ "master" ]
  6. permissions:
  7. contents: read
  8. jobs:
  9. build:
  10. runs-on: ubuntu-22.04
  11. strategy:
  12. matrix:
  13. python-version: ["3.8", "3.9", "3.10", "3.11"]
  14. architecture: ["x64"]
  15. steps:
  16. - name: Checkout repository
  17. uses: actions/checkout@v4
  18. - name: Set up Python ${{ matrix.python-version }}
  19. uses: actions/setup-python@v4
  20. with:
  21. python-version: ${{ matrix.python-version }}
  22. architecture: ${{ matrix.architecture }}
  23. - name: Install python3 tox
  24. shell: bash
  25. run: |
  26. python3 -m pip install tox
  27. - name: Run unit tests with tox
  28. shell: bash
  29. run: |
  30. tox -e py3,pep8 -v