name: Test with pyTest on: [workflow_dispatch, push, pull_request] jobs: deploy: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - name: Set up Python uses: actions/setup-python@v2 with: python-version: '^3.10' - name: Install dependencies run: | python -m pip install --upgrade pip python -m pip install pytest if [ -f requirements.txt ]; then pip install -r requirements.txt; fi - name: Test with pyTest run: | python -m pytest -v