Skip to content

Commit df2810a

Browse files
ci: adding CI workflow with usual python jobs
1 parent f9e5d3c commit df2810a

1 file changed

Lines changed: 48 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: build package
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
push:
8+
tags:
9+
- '*'
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
- uses: actions/setup-python@v5
17+
with:
18+
python-version: '3.10'
19+
- run: |
20+
pip install tox
21+
- name: Run linters
22+
run: tox -e build || true
23+
24+
test:
25+
runs-on: ubuntu-latest
26+
needs: build
27+
steps:
28+
- uses: actions/checkout@v4
29+
- uses: actions/setup-python@v5.4.0
30+
with:
31+
python-version: '3.10'
32+
- run: |
33+
pip install tox
34+
- name: Run unittests
35+
run: tox -e unittests
36+
37+
lint:
38+
runs-on: ubuntu-latest
39+
needs: build
40+
steps:
41+
- uses: actions/checkout@v4
42+
- uses: actions/setup-python@v5
43+
with:
44+
python-version: '3.10'
45+
- run: |
46+
pip install tox
47+
- name: Run linters
48+
run: tox -e lint || true

0 commit comments

Comments
 (0)