Skip to content

Instantly share code, notes, and snippets.

@izikeros
Created July 17, 2024 21:16
Show Gist options
  • Save izikeros/ab67e84197192682e4351cf944a0105a to your computer and use it in GitHub Desktop.
Save izikeros/ab67e84197192682e4351cf944a0105a to your computer and use it in GitHub Desktop.
[pytest (GitHub Action)] run pytest #action #github #workflow
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