Skip to content

Commit 0b97fa0

Browse files
committed
lock to poetry version 1.8.4
1 parent a47e58c commit 0b97fa0

File tree

1 file changed

+25
-21
lines changed

1 file changed

+25
-21
lines changed

.github/workflows/build.yml

Lines changed: 25 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
1+
# This workflow will install Python dependencies and run tests
2+
13
name: Python package
24

35
on:
46
push:
5-
branches: ["main"]
7+
branches: [ "main" ]
68
pull_request:
7-
branches: ["main"]
9+
branches: [ "main" ]
810

911
jobs:
1012
build:
13+
1114
name: Build for (${{ matrix.python-version }}, ${{ matrix.os }})
1215
runs-on: ${{ matrix.os }}
1316
strategy:
@@ -17,22 +20,23 @@ jobs:
1720
python-version: ['3.9', '3.10', '3.11', '3.12']
1821

1922
steps:
20-
- uses: actions/checkout@v3
21-
- name: Set up Python ${{ matrix.python-version }}
22-
uses: actions/setup-python@v3
23-
with:
24-
python-version: ${{ matrix.python-version }}
25-
- uses: actions/cache@v3
26-
with:
27-
path: ~/.cache/pip
28-
key: ${{ runner.os }}-pip-${{ hashFiles('pyproject.toml') }}
29-
- name: Install dependencies
30-
run: |
31-
python -m pip install --upgrade pip
32-
python -m pip install poetry
33-
poetry lock
34-
poetry install -E dev -E rnn -E visuals
35-
- name: Verify that we can build the package
36-
run: poetry build
37-
- name: Test with pytest
38-
run: poetry run pytest
23+
- uses: actions/checkout@v3
24+
- name: Set up Python ${{ matrix.python-version }}
25+
uses: actions/setup-python@v3
26+
with:
27+
python-version: ${{ matrix.python-version }}
28+
29+
- uses: actions/cache@v3
30+
with:
31+
path: ${{ env.pythonLocation }}
32+
key: ${{ env.pythonLocation }}-${{ hashFiles('pyproject.toml') }}
33+
34+
- name: Install dependencies
35+
run: |
36+
python -m pip install poetry==1.8.4
37+
poetry lock --no-update
38+
poetry install -E dev -E rnn -E visuals
39+
- name: Verify that we can build the package
40+
run: poetry build
41+
- name: Test with pytest
42+
run: poetry run pytest

0 commit comments

Comments
 (0)