Skip to content

Commit 14f29de

Browse files
committed
Add CI
1 parent f421254 commit 14f29de

File tree

2 files changed

+44
-6
lines changed

2 files changed

+44
-6
lines changed

.github/workflows/ci.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: check
2+
on:
3+
workflow_dispatch:
4+
pull_request:
5+
push:
6+
branches:
7+
- main
8+
9+
jobs:
10+
pre_commit:
11+
name: Pre-commit
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v5
15+
- uses: actions/setup-python@v5
16+
with:
17+
python-version: '3.9'
18+
- uses: pre-commit/[email protected]
19+
20+
test:
21+
name: Test on Python ${{ matrix.py }}
22+
runs-on: ubuntu-latest
23+
24+
strategy:
25+
fail-fast: false
26+
matrix:
27+
py:
28+
- "3.13"
29+
- "3.12"
30+
- "3.11"
31+
- "3.10"
32+
- "3.9"
33+
34+
steps:
35+
- name: Setup python for test ${{ matrix.py }}
36+
uses: actions/setup-python@v5
37+
with:
38+
python-version: ${{ matrix.py }}
39+
- uses: actions/checkout@v5
40+
41+
- name: Install tox-gh
42+
run: python -m pip install tox-gh
43+
- name: Run test suite
44+
run: tox

tox.ini

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,3 @@ deps=
2323
factory-boy
2424
commands=
2525
pytest
26-
passenv =
27-
DB_HOST
28-
DB_PORT
29-
DB_NAME
30-
DB_USER
31-
DB_PASSWORD

0 commit comments

Comments
 (0)