Skip to content

Commit 8f89794

Browse files
Merge pull request #7 from LedgerHQ/ci/adding-pythonic-workflows
ci: adding pythonic workflows
2 parents 8eaca0d + 17b2385 commit 8f89794

1 file changed

Lines changed: 54 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
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+
strategy:
28+
matrix:
29+
pyversion:
30+
- '3.6'
31+
- '3.10'
32+
- '3.12'
33+
steps:
34+
- uses: actions/checkout@v4
35+
- uses: actions/setup-python@v5.4.0
36+
with:
37+
python-version: ${{ matrix.pyversion }}
38+
- run: |
39+
pip install tox
40+
- name: Run unittests
41+
run: tox -e unittests
42+
43+
lint:
44+
runs-on: ubuntu-latest
45+
needs: build
46+
steps:
47+
- uses: actions/checkout@v4
48+
- uses: actions/setup-python@v5
49+
with:
50+
python-version: '3.10'
51+
- run: |
52+
pip install tox
53+
- name: Run linters
54+
run: tox -e lint || true

0 commit comments

Comments
 (0)