File tree Expand file tree Collapse file tree 3 files changed +80
-15
lines changed Expand file tree Collapse file tree 3 files changed +80
-15
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ name : Checks
3+
4+ concurrency :
5+ group : ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
6+ cancel-in-progress : true
7+
8+ on :
9+ pull_request :
10+ branches :
11+ - main
12+ - stable-*
13+ tags :
14+ - " *"
15+
16+ jobs :
17+ schema-check :
18+ runs-on : ubuntu-latest
19+
20+ steps :
21+ - name : Checkout code
22+ uses : actions/checkout@v4
23+
24+ - name : Set up Python
25+ uses : actions/setup-python@v5
26+ with :
27+ python-version : " 3.13"
28+
29+ - name : Install dependencies
30+ run : |
31+ python -m pip install --upgrade pip
32+ python -m pip install tox
33+
34+ - name : Run schema checks
35+ run : tox -e check
36+
37+ type-check :
38+ runs-on : ubuntu-latest
39+
40+ steps :
41+ - name : Checkout code
42+ uses : actions/checkout@v4
43+
44+ - name : Set up Python
45+ uses : actions/setup-python@v5
46+ with :
47+ python-version : " 3.13"
48+
49+ - name : Install dependencies
50+ run : |
51+ python -m pip install --upgrade pip
52+ python -m pip install tox
53+
54+ - name : Run schema checks
55+ run : tox -e type
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ concurrency:
55 group : ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
66 cancel-in-progress : true
77
8- on : # yamllint disable-line rule:truthy
8+ on :
99 pull_request :
1010 branches :
1111 - main
@@ -14,8 +14,22 @@ on: # yamllint disable-line rule:truthy
1414 - " *"
1515
1616jobs :
17- linters :
18- name : Linters
19- uses : ansible-network/github_actions/.github/workflows/tox.yml@main
20- with :
21- envname : linters
17+ lint :
18+ runs-on : ubuntu-latest
19+
20+ steps :
21+ - name : Checkout code
22+ uses : actions/checkout@v4
23+
24+ - name : Set up Python
25+ uses : actions/setup-python@v5
26+ with :
27+ python-version : " 3.13"
28+
29+ - name : Install dependencies
30+ run : |
31+ python -m pip install --upgrade pip
32+ python -m pip install tox
33+
34+ - name : Run unit tests
35+ run : tox -e lint
Original file line number Diff line number Diff line change 1- name : Unit Tests
1+ name : Tests
22
33on :
44 pull_request :
@@ -25,16 +25,12 @@ jobs:
2525 - name : Set up Python
2626 uses : actions/setup-python@v5
2727 with :
28- python-version : ' 3.11 '
28+ python-version : " 3.13 "
2929
3030 - name : Install dependencies
3131 run : |
3232 python -m pip install --upgrade pip
33- pip install -r requirements/requirements-dev.txt
34-
35- - name : Run migrations
36- run : python manage.py migrate
37-
38- - name : Run core tests
39- run : python manage.py test core
33+ python -m pip install tox
4034
35+ - name : Run unit tests
36+ run : tox -e test
You can’t perform that action at this time.
0 commit comments