Skip to content

Commit 32ae3c5

Browse files
committed
Split linting stage from main Github CI/CD
1 parent af4b255 commit 32ae3c5

File tree

2 files changed

+36
-8
lines changed

2 files changed

+36
-8
lines changed

.github/workflows/linting.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Linting Tests
2+
# Only for last versions of python
3+
4+
on:
5+
push:
6+
branches:
7+
- master
8+
tags:
9+
- "*"
10+
pull_request:
11+
branches:
12+
- "*"
13+
14+
jobs:
15+
build:
16+
strategy:
17+
fail-fast: false
18+
matrix:
19+
include:
20+
- name: "linting"
21+
python: "3.8"
22+
os: ubuntu-latest
23+
tox_env: "lint"
24+
25+
steps:
26+
- uses: actions/checkout@v2
27+
- name: Set up Python ${{ matrix.python }}
28+
uses: actions/setup-python@v1
29+
with:
30+
python-version: ${{ matrix.python }}
31+
- name: Install dependencies
32+
run: |
33+
python -m pip install --upgrade pip
34+
pip install tox virtualenv
35+
- name: Test build
36+
run: "tox -e ${{ matrix.tox_env }}"

.github/workflows/main.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,11 @@ on:
1212

1313
jobs:
1414
build:
15-
runs-on: ${{ matrix.os }}
1615
strategy:
1716
fail-fast: false
1817
matrix:
1918
mongodb-version: [3.6, 4.0, 4.2]
20-
2119
include:
22-
- name: "linting"
23-
python: "3.8"
24-
os: ubuntu-latest
25-
tox_env: "lint"
26-
mongodb-version: 4.2
27-
2820
- name: "ubuntu-py36"
2921
python: "3.6"
3022
os: ubuntu-latest

0 commit comments

Comments
 (0)