Skip to content

Commit 8afb478

Browse files
author
Gonzalo Diaz
committed
[CONFIG] [Github Actions] lint and test actions splitted
1 parent 0cdbd9a commit 8afb478

File tree

2 files changed

+45
-10
lines changed

2 files changed

+45
-10
lines changed

.github/workflows/python.yml renamed to .github/workflows/python-lint.yml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,3 @@ jobs:
5252
- name: Styling (autopep8)
5353
run: |
5454
python3 -m autopep8 --diff --recursive --exit-code --verbose .
55-
- name: Test
56-
run: >
57-
coverage run -m pytest --verbose
58-
-o log_cli=true
59-
--log-cli-level=INFO
60-
src/
61-
62-
- name: Coverage
63-
run: |
64-
coverage report

.github/workflows/python-test.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
---
2+
name: Python CI Tests
3+
4+
on: # yamllint disable-line rule:truthy
5+
push:
6+
branches: ['main']
7+
pull_request:
8+
# The branches below must be a subset of the branches above
9+
branches: ['main']
10+
workflow_dispatch:
11+
12+
env:
13+
LOG_LEVEL: INFO
14+
15+
jobs:
16+
build:
17+
name: 'Run CI'
18+
strategy:
19+
fail-fast: false
20+
matrix:
21+
os: ['ubuntu-24.04', 'macos-14', 'windows-2022']
22+
python: ['3.10', '3.11', '3.12']
23+
runs-on: ${{ matrix.os }}
24+
steps:
25+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
26+
27+
- name: Setup Python
28+
uses: actions/setup-python@master
29+
with:
30+
python-version: ${{ matrix.python }}
31+
32+
- name: Install
33+
run: |
34+
pip3 install -r requirements.txt
35+
36+
- name: Test
37+
run: >
38+
coverage run -m pytest --verbose
39+
-o log_cli=true
40+
--log-cli-level=INFO
41+
src/
42+
43+
- name: Coverage
44+
run: |
45+
coverage report

0 commit comments

Comments
 (0)