Skip to content

Commit 1c482d5

Browse files
authored
Create run_tests.yaml
1 parent ada5229 commit 1c482d5

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/run_tests.yaml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Run tests
2+
3+
on:
4+
pull_request:
5+
6+
jobs:
7+
run-tests:
8+
strategy:
9+
matrix:
10+
python-version: [ 3.9, 3.11 ]
11+
os: [ ubuntu-latest ]
12+
fail-fast: false
13+
runs-on: ${{ matrix.os }}
14+
steps:
15+
- name: Checkout code
16+
uses: actions/checkout@v2
17+
18+
- name: Set up Python ${{ matrix.python-version }}
19+
uses: actions/setup-python@v2
20+
with:
21+
python-version: ${{ matrix.python-version }}
22+
23+
- name: Install dependencies
24+
run: |
25+
python -m pip install --upgrade pip
26+
python -m pip install -r ./test/requirements.txt
27+
28+
29+
- name: Checks with pre-commit
30+
uses: pre-commit/action@v2.0.3
31+
32+
- name: Test with pytest
33+
run: |
34+
python -m pip install .
35+
python -m test

0 commit comments

Comments
 (0)