Add a requirements.txt file. #2
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run pytest | ||
# Allow to trigger the workflow manually (e.g. when deps changes) | ||
on: [push, workflow_dispatch] | ||
jobs: | ||
pytest-job: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 20 | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.10" | ||
# Uncomment to cache of pip dependencies (if tests run too slowly) | ||
# cache: pip | ||
- name: Install dependencies | ||
run: pip install --upgrade pip | ||
run: pip --version | ||
Check failure on line 27 in .github/workflows/run_pytest.yml
|
||
run: pip install -r requirements.txt | ||
run: pip freeze | ||
- name: Run tests | ||
run: pytest -vv -n auto |