Skip to content

Commit fc6548d

Browse files
committed
Added GitHub Action workflow for running test suite
1 parent 0cafdbb commit fc6548d

File tree

2 files changed

+43
-0
lines changed

2 files changed

+43
-0
lines changed

.github/workflows/test.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Tests
2+
3+
on:
4+
pull_request:
5+
types: [opened, synchronize, reopened, ready_for_review]
6+
push:
7+
branches:
8+
- main
9+
10+
jobs:
11+
test:
12+
runs-on: ubuntu-latest
13+
strategy:
14+
matrix:
15+
python-version: ["3.13"]
16+
17+
steps:
18+
- uses: actions/[email protected]
19+
- name: Set up Python ${{ matrix.python-version }}
20+
uses: actions/[email protected]
21+
with:
22+
python-version: ${{ matrix.python-version }}
23+
- name: Cache pip
24+
uses: actions/[email protected]
25+
with:
26+
path: ~/.cache/pip
27+
key: ${{ runner.os }}-pip-${{ hashFiles('pyproject.toml') }}
28+
restore-keys: |
29+
${{ runner.os }}-pip-
30+
${{ runner.os }}-
31+
- name: Install dependencies
32+
run: |
33+
python -m pip install --upgrade pip setuptools wheel
34+
pip install -e .[dev]
35+
- name: Run tests
36+
run: |
37+
pytest -vv

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,9 @@ To install pre-commit hooks:
1313
```console
1414
$ pre-commit install
1515
```
16+
17+
To run the test suite:
18+
19+
```console
20+
$ pytest
21+
```

0 commit comments

Comments
 (0)