python-tests.yml 875 B

1234567891011121314151617181920212223242526272829303132
  1. # This workflow will install Python dependencies, run tests with python2 and 3 on windows, macOS an ununtu
  2. # For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
  3. name: Metrix++ Tests
  4. on:
  5. push:
  6. pull_request:
  7. jobs:
  8. test:
  9. name: Test on ${{ matrix.os }}
  10. runs-on: ${{ matrix.os }}
  11. strategy:
  12. matrix:
  13. python: [2.7, 3.5, 3.6, 3.7, 3.8]
  14. os: [ubuntu-latest, windows-latest, macOS-latest]
  15. steps:
  16. - uses: actions/checkout@v2
  17. - name: Set up Python ${{ matrix.python }}
  18. uses: actions/setup-python@v2
  19. with:
  20. python-version: ${{ matrix.python }}
  21. - name: Install dependencies
  22. run: |
  23. python -m pip install --upgrade pip
  24. pip install -r requirements.txt
  25. - name: Run tests
  26. run: |
  27. python metrix++.py test