Created
August 10, 2023 13:07
-
-
Save elisim/0753bf6162a31eec94f75c586375894e to your computer and use it in GitHub Desktop.
Run PyTest GitHub Actions
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 | |
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