Skip to content

Commit 565842d

Browse files
authored
Merge pull request #14 from FertigLab/copilot/implement-test-action-pr-main
ci: add GitHub Actions workflow to run tests on PRs to main
2 parents 11f2184 + fd280ba commit 565842d

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

.github/workflows/tests.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Tests
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
8+
jobs:
9+
test:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: read
13+
14+
steps:
15+
- uses: actions/checkout@v4
16+
17+
- name: Set up Python
18+
uses: actions/setup-python@v5
19+
with:
20+
python-version: "3.12"
21+
22+
- name: Install dependencies
23+
run: |
24+
pip install -r requirements.txt
25+
pip install pytest
26+
27+
- name: Run tests
28+
run: python3 -m pytest tests/ -v

0 commit comments

Comments
 (0)