Skip to content

Commit aea2b1a

Browse files
committed
feat: pytest workflow
1 parent f568749 commit aea2b1a

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

.github/workflows/pytest.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# This workflow will run pytest in the repository directory
2+
# This runs on pull request or on any push to the repository
3+
# based on https://www.youtube.com/watch?v=uFcXrWT4f80
4+
name: Run tests
5+
6+
on:
7+
pull_request:
8+
branches: ['master']
9+
push:
10+
branches: ['master']
11+
workflow_dispatch:
12+
13+
jobs:
14+
tests:
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- name: checkout
19+
uses: actions/checkout@v5
20+
21+
- name: setup-python
22+
uses: actions/setup-python@v5
23+
with:
24+
python-version: '3.13'
25+
- run: pip install -r requirements.txt
26+
- run: pip install pytest
27+
28+
- shell: bash
29+
env:
30+
# TEST_SECRET: ${{ secrets.TEST_SECRET }}
31+
run: |
32+
pytest

0 commit comments

Comments
 (0)