@@ -2,9 +2,13 @@ name: CI
22
33on : [push]
44
5+ concurrency :
6+ group : ${{ github.workflow }}${{ github.ref_name != github.event.repository.default_branch && github.ref || github.run_id }}
7+ cancel-in-progress : ${{ github.ref_name != github.event.repository.default_branch }}
8+
59jobs :
610 test :
7- runs-on : ubuntu-20.04
11+ runs-on : ubuntu-latest
812 strategy :
913 matrix :
1014 python-version : [3.12, 3.9]
@@ -13,32 +17,32 @@ jobs:
1317 IS_COVERAGE_ALLOWED : ${{ secrets.CODACY_PROJECT_TOKEN != '' }}
1418 IS_MASTER_BRANCH : ${{ github.ref == 'refs/heads/master' }}
1519 steps :
16- - uses : actions/checkout@v2
17- - name : Set up Python
18- uses : actions/setup-python@v2
19- with :
20- python-version : ${{ matrix.python-version }}
21- - name : Install poetry
22- uses : abatilo/actions-poetry@v2.0.0
23- with :
24- poetry-version : ${{ matrix.poetry-version }}
25- - name : Install pip dependencies
26- run : poetry install
27- - name : Run tests
28- run : poetry run pytest --cov-report xml --cov=autopr test/ -v
20+ - uses : actions/checkout@v2
21+ - name : Set up Python
22+ uses : actions/setup-python@v2
23+ with :
24+ python-version : ${{ matrix.python-version }}
25+ - name : Install poetry
26+ uses : abatilo/actions-poetry@v2.0.0
27+ with :
28+ poetry-version : ${{ matrix.poetry-version }}
29+ - name : Install pip dependencies
30+ run : poetry install
31+ - name : Run tests
32+ run : poetry run pytest --cov-report xml --cov=autopr test/ -v
2933 lint :
30- runs-on : ubuntu-20.04
34+ runs-on : ubuntu-latest
3135 steps :
32- - uses : actions/checkout@v2
33- - name : Set up Python
34- uses : actions/setup-python@v2
35- with :
36- python-version : 3.9
37- - name : Install poetry
38- uses : abatilo/actions-poetry@v2.0.0
39- with :
40- poetry-version : 1.3.1
41- - name : Install pip dependencies
42- run : poetry install
43- - name : Run pre-commit
44- run : poetry run pre-commit run --all-files --show-diff-on-failure
36+ - uses : actions/checkout@v2
37+ - name : Set up Python
38+ uses : actions/setup-python@v2
39+ with :
40+ python-version : 3.9
41+ - name : Install poetry
42+ uses : abatilo/actions-poetry@v2.0.0
43+ with :
44+ poetry-version : 1.3.1
45+ - name : Install pip dependencies
46+ run : poetry install
47+ - name : Run pre-commit
48+ run : poetry run pre-commit run --all-files --show-diff-on-failure
0 commit comments