Skip to content

Commit a861488

Browse files
committed
Split workflows Linter & Test
1 parent bae2b21 commit a861488

File tree

2 files changed

+33
-13
lines changed

2 files changed

+33
-13
lines changed

.github/workflows/linter.yml

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
---
2+
name: Lint
3+
4+
on: # yamllint disable-line rule:truthy
5+
push: null
6+
pull_request: null
7+
8+
permissions: {}
9+
10+
jobs:
11+
build:
12+
name: Lint
13+
runs-on: ubuntu-latest
14+
15+
permissions:
16+
contents: read
17+
packages: read
18+
# To report GitHub Actions status checks
19+
statuses: write
20+
21+
steps:
22+
- name: Checkout code
23+
uses: actions/checkout@v4
24+
with:
25+
# super-linter needs the full git history to get the
26+
# list of files that changed across commits
27+
fetch-depth: 0
28+
29+
- name: Super-linter
30+
uses: super-linter/[email protected] # x-release-please-version
31+
env:
32+
# To report GitHub Actions status checks
33+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/django.yml .github/workflows/tests.yml

-13
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,6 @@ jobs:
1010
build:
1111
runs-on: ubuntu-latest
1212

13-
permissions:
14-
contents: read
15-
packages: read
16-
statuses: write
17-
1813
strategy:
1914
max-parallel: 4
2015
matrix:
@@ -23,8 +18,6 @@ jobs:
2318
steps:
2419
- name: Checkout code
2520
uses: actions/checkout@v4
26-
with:
27-
fetch-depth: 0
2821

2922
- name: Set up Python ${{ matrix.python-version }}
3023
uses: actions/setup-python@v3
@@ -36,12 +29,6 @@ jobs:
3629
python -m pip install --upgrade pip
3730
pip install -r requirements/base.txt
3831
39-
- name: Run Linter
40-
uses: super-linter/[email protected]
41-
env:
42-
# To report GitHub Actions status checks
43-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
44-
4532
- name: Run Tests
4633
run: |
4734
python manage.py test

0 commit comments

Comments
 (0)