Skip to content

Commit 8b26815

Browse files
author
Sebastian Molenda
committed
Move linter to validators
1 parent 056d4bd commit 8b26815

File tree

2 files changed

+17
-19
lines changed

2 files changed

+17
-19
lines changed

.github/workflows/run-tests.yml

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -18,27 +18,9 @@ env:
1818
PN_KEY_PAM_SECRET: ${{ secrets.PN_KEY_PAM_SECRET }}
1919

2020
jobs:
21-
lint:
22-
name: Lint project
23-
runs-on: ubuntu-latest
24-
steps:
25-
- name: Checkout project
26-
uses: actions/checkout@v3
27-
- name: Setup Python 3.11
28-
uses: actions/setup-python@v4
29-
with:
30-
python-version: '3.11'
31-
- name: Install Python dependencies and run acceptance tests
32-
run: |
33-
sudo pip3 install -r requirements-dev.txt
34-
flake8 --exclude=scripts/,src/,.cache,.git,.idea,.tox,._trial_temp/,venv/ --ignore F811,E402
35-
- name: Cancel workflow runs for commit on error
36-
if: failure()
37-
uses: ./.github/.release/actions/actions/utils/fast-jobs-failure
3821
tests:
3922
name: Integration and Unit tests
4023
runs-on: ubuntu-latest
41-
needs: [lint]
4224
strategy:
4325
fail-fast: true
4426
matrix:
@@ -69,7 +51,6 @@ jobs:
6951
acceptance-tests:
7052
name: Acceptance tests
7153
runs-on: ubuntu-latest
72-
needs: [lint]
7354
steps:
7455
- name: Checkout project
7556
uses: actions/checkout@v3

.github/workflows/run-validations.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,23 @@ name: Validations
33
on: [push]
44

55
jobs:
6+
lint:
7+
name: Lint project
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout project
11+
uses: actions/checkout@v3
12+
- name: Setup Python 3.11
13+
uses: actions/setup-python@v4
14+
with:
15+
python-version: '3.11'
16+
- name: Install Python dependencies and run acceptance tests
17+
run: |
18+
sudo pip3 install -r requirements-dev.txt
19+
flake8 --exclude=scripts/,src/,.cache,.git,.idea,.tox,._trial_temp/,venv/ --ignore F811,E402
20+
- name: Cancel workflow runs for commit on error
21+
if: failure()
22+
uses: ./.github/.release/actions/actions/utils/fast-jobs-failure
623
pubnub-yml:
724
name: "Validate .pubnub.yml"
825
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)