python-app.yml 791 B

123456789101112131415161718192021222324252627282930
  1. # This workflow will install Python dependencies, run tests and lint with a single version of Python
  2. # For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
  3. name: Python application
  4. on:
  5. push:
  6. branches: [ master ]
  7. pull_request:
  8. branches: [ master ]
  9. jobs:
  10. build:
  11. runs-on: ubuntu-latest
  12. steps:
  13. - uses: actions/checkout@v2
  14. - name: Set up Python 3.8
  15. uses: actions/setup-python@v2
  16. with:
  17. python-version: 3.8
  18. - name: Install dependencies
  19. run: |
  20. python -m pip install --upgrade pip
  21. pip install flake8 pytest
  22. if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
  23. - name: Run tests
  24. run: |
  25. python metrix++.py test