Skip to content

Commit 396b568

Browse files
authored
Merge pull request #40 from GitGuardian/agateau/ci-fixes
CI fixes
2 parents 82a3b81 + c189b80 commit 396b568

File tree

2 files changed

+12
-708
lines changed

2 files changed

+12
-708
lines changed

.github/workflows/test-lint.yml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
1-
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
2-
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
3-
41
name: Main
52

6-
on: [push, pull_request]
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
# Only build on pushes to the main branch, otherwise branches pushed for PR
8+
# are built twice
9+
- main
10+
tags:
711

812
jobs:
913
lint:
@@ -17,7 +21,7 @@ jobs:
1721
- name: Install dependencies
1822
run: |
1923
python -m pip install --upgrade pip
20-
python -m pip install --upgrade pipenv
24+
python -m pip install --upgrade pipenv==2022.10.4
2125
pipenv install --dev --system --skip-lock
2226
- name: Lint with flake8
2327
run: |
@@ -29,9 +33,10 @@ jobs:
2933
build:
3034
runs-on: ${{ matrix.os }}
3135
strategy:
36+
fail-fast: false
3237
matrix:
3338
os: [ubuntu-latest, macos-latest, windows-latest]
34-
python-version: [3.7, 3.8, 3.9]
39+
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
3540
steps:
3641
- uses: actions/checkout@v2
3742
- name: Set up Python ${{ matrix.python-version }}
@@ -41,7 +46,7 @@ jobs:
4146
- name: Install dependencies
4247
run: |
4348
python -m pip install --upgrade pip
44-
python -m pip install --upgrade pipenv
49+
python -m pip install --upgrade pipenv==2022.10.4
4550
pipenv install --system --dev --skip-lock
4651
- name: Test with pytest
4752
run: |

0 commit comments

Comments
 (0)