Skip to content

Commit 37f1371

Browse files
committed
ci(github-acitons): pin poetry version to 1.3.2 due to python-poetry/poetry#7611
1 parent e32e91b commit 37f1371

File tree

2 files changed

+50
-48
lines changed

2 files changed

+50
-48
lines changed

.github/workflows/pythonpackage.yml

Lines changed: 30 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,39 @@
11
name: Python package
22

3-
on: [workflow_dispatch, pull_request]
3+
on: [ workflow_dispatch, pull_request ]
44

55
jobs:
66
python-check:
77
strategy:
88
matrix:
9-
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
10-
platform: [ubuntu-20.04, macos-latest, windows-latest]
9+
python-version: [ "3.7", "3.8", "3.9", "3.10", "3.11" ]
10+
platform: [ ubuntu-20.04, macos-latest, windows-latest ]
1111
runs-on: ${{ matrix.platform }}
1212
steps:
13-
- uses: actions/checkout@v3
14-
with:
15-
fetch-depth: 0
16-
- name: Set up Python ${{ matrix.python-version }}
17-
uses: actions/setup-python@v4
18-
with:
19-
python-version: ${{ matrix.python-version }}
20-
- name: Install dependencies
21-
run: |
22-
python -m pip install -U pip poetry
23-
poetry --version
24-
poetry install
25-
- name: Run tests and linters
26-
run: |
27-
git config --global user.email "action@github.com"
28-
git config --global user.name "GitHub Action"
29-
./scripts/test
30-
shell: bash
31-
- name: Upload coverage to Codecov
32-
if: runner.os == 'Linux'
33-
uses: codecov/codecov-action@v3
34-
with:
35-
token: ${{secrets.CODECOV_TOKEN}}
36-
file: ./coverage.xml
37-
flags: unittests
38-
name: codecov-umbrella
13+
- uses: actions/checkout@v3
14+
with:
15+
fetch-depth: 0
16+
- name: Set up Python ${{ matrix.python-version }}
17+
uses: actions/setup-python@v4
18+
with:
19+
python-version: ${{ matrix.python-version }}
20+
- name: Install dependencies
21+
run: |
22+
# pin poetry to 1.3.2 due to https://github.com/python-poetry/poetry/issues/7611
23+
python -m pip install -U pip poetry==1.3.2
24+
poetry --version
25+
poetry install
26+
- name: Run tests and linters
27+
run: |
28+
git config --global user.email "action@github.com"
29+
git config --global user.name "GitHub Action"
30+
./scripts/test
31+
shell: bash
32+
- name: Upload coverage to Codecov
33+
if: runner.os == 'Linux'
34+
uses: codecov/codecov-action@v3
35+
with:
36+
token: ${{secrets.CODECOV_TOKEN}}
37+
file: ./coverage.xml
38+
flags: unittests
39+
name: codecov-umbrella

.github/workflows/pythonpublish.yml

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -9,22 +9,23 @@ jobs:
99
deploy:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v3
13-
with:
14-
token: '${{ secrets.PERSONAL_ACCESS_TOKEN }}'
15-
fetch-depth: 0
16-
- name: Set up Python
17-
uses: actions/setup-python@v4
18-
with:
19-
python-version: '3.x'
20-
- name: Install dependencies
21-
run: |
22-
python -m pip install -U pip poetry mkdocs mkdocs-material
23-
poetry --version
24-
poetry install
25-
- name: Publish
26-
env:
27-
PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }}
28-
PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
29-
run: |
30-
./scripts/publish
12+
- uses: actions/checkout@v3
13+
with:
14+
token: '${{ secrets.PERSONAL_ACCESS_TOKEN }}'
15+
fetch-depth: 0
16+
- name: Set up Python
17+
uses: actions/setup-python@v4
18+
with:
19+
python-version: '3.x'
20+
- name: Install dependencies
21+
run: |
22+
# pin poetry to 1.3.2 due to https://github.com/python-poetry/poetry/issues/7611
23+
python -m pip install -U pip poetry==1.3.2 mkdocs mkdocs-material
24+
poetry --version
25+
poetry install
26+
- name: Publish
27+
env:
28+
PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }}
29+
PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
30+
run: |
31+
./scripts/publish

0 commit comments

Comments
 (0)