Skip to content

Commit d3b52f3

Browse files
authored
Create tests.yml
1 parent b4e1441 commit d3b52f3

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

.github/workflows/tests.yml

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

0 commit comments

Comments
 (0)