@@ -2,7 +2,7 @@ name: Test and Build
2
2
3
3
on :
4
4
push :
5
- branches : [main]
5
+ branches : [ main ]
6
6
pull_request :
7
7
8
8
jobs :
@@ -13,29 +13,30 @@ jobs:
13
13
# max-parallel: 8
14
14
fail-fast : false
15
15
matrix :
16
- python-version : ["3.9", "3.10", "3.11", "3.12"]
17
- poetry-version : ["1.2.2", "1.7.1"]
18
- os : [ubuntu-22.04, macos-latest, windows-latest]
16
+ python-version : [ "3.9", "3.10", "3.11", "3.12" ]
17
+ poetry-version : [ "1.2.2", "1.7.1" ]
18
+ os : [ ubuntu-22.04, macos-latest, windows-latest ]
19
19
runs-on : ${{ matrix.os }}
20
20
steps :
21
21
- uses : actions/checkout@v4
22
22
with :
23
23
fetch-depth : 0 # Shallow clones should be disabled for a better relevancy of analysis
24
- - uses : actions/setup-python@v4
24
+ - name : Set up Python ${{ matrix.python-version }}
25
+ uses : actions/setup-python@v5
25
26
with :
26
27
python-version : ${{ matrix.python-version }}
28
+
27
29
- name : Run image
28
- uses : abatilo/actions-poetry@v2
30
+ uses : abatilo/actions-poetry@v3
29
31
with :
30
32
poetry-version : ${{ matrix.poetry-version }}
31
- - name : Set up Python ${{ matrix.python-version }}
32
- uses : actions/setup-python@v2
33
- with :
34
- python-version : ${{ matrix.python-version }}
33
+
35
34
- name : Setup environment
36
35
run : poetry install
36
+
37
37
- name : Show environment
38
38
run : poetry run pip list
39
+
39
40
- name : Tests
40
41
run : |
41
42
poetry run pytest --cov=scan_pdf --cov-report xml:reports/coverage.xml --cov-report term --junitxml=reports/junit.xml
0 commit comments