Skip to content

Instantly share code, notes, and snippets.

@elisim
Created August 10, 2023 13:07
Show Gist options
  • Save elisim/0753bf6162a31eec94f75c586375894e to your computer and use it in GitHub Desktop.
Save elisim/0753bf6162a31eec94f75c586375894e to your computer and use it in GitHub Desktop.
Run PyTest GitHub Actions
name: Run PyTest
on:
[ pull_request ]
jobs:
pytest:
name: Run Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run PyTest
run: |
pytest -v
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment