Skip to content

Commit

Permalink
Install poetry before setup-python for 'cache'
Browse files Browse the repository at this point in the history
Signed-off-by: Fabrice Normandin <[email protected]>
  • Loading branch information
lebrice committed Jul 4, 2024
1 parent be23080 commit 7353dd1
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,17 @@ jobs:
python-version: ['3.12']
steps:
- uses: actions/checkout@v4
- name: Install poetry
# needs to be installed for the cache below to be used, which seems a bit weird (since the
# python version might be wrong?)
run: pip install poetry

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: poetry
- run: pip install poetry

- name: Install dependencies
run: poetry install
- name: Test with pytest (very fast)
Expand All @@ -71,6 +76,11 @@ jobs:
python-version: ['3.12']
steps:
- uses: actions/checkout@v4

- name: Install poetry
# See note above.
run: pip install poetry

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
Expand Down

0 comments on commit 7353dd1

Please sign in to comment.