Created
July 17, 2024 21:16
-
-
Save izikeros/ab67e84197192682e4351cf944a0105a to your computer and use it in GitHub Desktop.
[pytest (GitHub Action)] run pytest #action #github #workflow
This file contains hidden or 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: pytest | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install Python 3 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.10.6 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements-test.txt | |
- name: Run tests with pytest | |
run: pytest |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment