Skip to content

Commit

Permalink
ci(workflows): update Poetry versions and add caching
Browse files Browse the repository at this point in the history
  • Loading branch information
pivoshenko committed Feb 8, 2025
1 parent 264867a commit f96951c
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
- name: macOS aarch64
image: macos-14
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
poetry-version: ["1.5.0", "1.6.0", "1.7.0", "1.8.0"]
poetry-version: ["1.5.0", "1.6.0", "1.7.0", "1.8.0", "2.0.0"]
fail-fast: false
steps:
- name: Checkout repository
Expand All @@ -46,15 +46,23 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

- name: Install poetry
- name: Install Poetry
id: install-poetry
run: |
python -m pip install "poetry==${{ matrix.poetry-version }}"
- name: Restore Poetry cache
id: restore-poetry-cache
uses: actions/cache@v4
with:
path: ~/.cache/pypoetry
key: poetry-${{ runner.os }}-${{ hashFiles('poetry.lock') }}
restore-keys: poetry-${{ runner.os }}-

- name: Install dependencies
id: install-dependencies
run: |
python -m poetry install --only main --only tests
python -m poetry install --no-interaction --only main --only tests
- name: Run tests
id: run-tests
Expand Down

0 comments on commit f96951c

Please sign in to comment.