Skip to content

Commit

Permalink
don't run the ci twice per each pull request (#72)
Browse files Browse the repository at this point in the history
* don't run the ci twice per each pull request

Signed-off-by: oleg.hoefling <oleg.hoefling@gmail.com>

* try out running ci with pypy 3.9

Signed-off-by: oleg.hoefling <oleg.hoefling@gmail.com>

* remove workaround for python-poetry/poetry#4210

Signed-off-by: oleg.hoefling <oleg.hoefling@gmail.com>

* skip win + pypy3 builds due to python-poetry/poetry#4626

Signed-off-by: oleg.hoefling <oleg.hoefling@gmail.com>

* drop 3.6 jobs

Signed-off-by: oleg.hoefling <oleg.hoefling@gmail.com>

Signed-off-by: oleg.hoefling <oleg.hoefling@gmail.com>
  • Loading branch information
hoefling authored Aug 22, 2022
1 parent dfef9cb commit 804b9a7
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: CI
on: [push, pull_request]
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
code-quality:
name: Code quality
Expand Down Expand Up @@ -40,11 +44,13 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu, macos, windows]
python: ['3.6', '3.7', '3.8', '3.9', '3.10', 'pypy-3.7']
python: ['3.7', '3.8', '3.9', '3.10', 'pypy-3.7', 'pypy-3.9']
exclude:
# poetry can't install with 3.6 on windows w/o a UnicodeEncodeError
# skip pypy3 + win builds until https://github.com/python-poetry/poetry/issues/4626 is fixed
- os: windows
python: 3.6
python: pypy-3.7
- os: windows
python: pypy-3.9
# reference: https://github.com/snok/install-poetry#running-on-windows
defaults:
run:
Expand All @@ -63,9 +69,6 @@ jobs:
with:
virtualenvs-create: true
virtualenvs-in-project: true
- name: Workaround for https://github.com/python-poetry/poetry/issues/4210
run: poetry config experimental.new-installer false
if: matrix.python == '3.10.0-rc.1'
- name: Set up cache
uses: actions/cache@v3
id: cache
Expand Down

0 comments on commit 804b9a7

Please sign in to comment.