Skip to content

Commit a3405ef

Browse files
committed
chore: add github-actions for tests
1 parent 59b2bdf commit a3405ef

1 file changed

Lines changed: 40 additions & 0 deletions

File tree

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Python package
2+
3+
on:
4+
push:
5+
branches: [ master, chore/updates ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
strategy:
16+
fail-fast: false
17+
matrix:
18+
python-version: ["3.10", "3.11", "3.12", "3.13"]
19+
20+
steps:
21+
- uses: actions/checkout@v6.0.3
22+
23+
- name: Set up Python ${{ matrix.python-version }}
24+
uses: actions/setup-python@v6.2.0
25+
with:
26+
python-version: ${{ matrix.python-version }}
27+
28+
- name: Install dependencies
29+
run: |
30+
python -m pip install --upgrade pip
31+
pip install tox
32+
33+
- name: Run tests with tox
34+
run: |
35+
tox -e py
36+
37+
- name: Run style checks with tox (Python 3.12 only)
38+
if: ${{ matrix.python-version == '3.12' }}
39+
run: |
40+
tox -e codestyle

0 commit comments

Comments
 (0)