Skip to content

Commit 28a6418

Browse files
add test workflow
1 parent 4580783 commit 28a6418

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/test.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: test
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
8+
concurrency:
9+
group: ${{ github.workflow }}-${{ github.head_ref }}
10+
cancel-in-progress: true
11+
12+
env:
13+
PYTHONUNBUFFERED: "1"
14+
FORCE_COLOR: "1"
15+
16+
jobs:
17+
test:
18+
runs-on: "ubuntu-latest"
19+
steps:
20+
- uses: actions/checkout@v4
21+
22+
- name: Set up Python ${{ matrix.python-version }}
23+
uses: actions/setup-python@v5
24+
with:
25+
python-version: "3.8"
26+
cache: "pip"
27+
allow-prereleases: true
28+
29+
- name: Install dependencies
30+
run: |
31+
python -m pip install --upgrade pip
32+
python -m pip install -r requirements-dev.lock
33+
34+
- name: Run tests
35+
run: |
36+
python -m pytest

0 commit comments

Comments
 (0)