Skip to content

Commit

Permalink
Try to fix poetry cache (2)
Browse files Browse the repository at this point in the history
  • Loading branch information
henrique-coder committed Dec 12, 2024
1 parent d93e834 commit c97a9e0
Showing 1 changed file with 20 additions and 5 deletions.
25 changes: 20 additions & 5 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,14 @@ on:

jobs:
test:
name: Run Tests
strategy:
fail-fast: false
matrix:
os: ["ubuntu-latest", "windows-latest"]
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
#os: ["ubuntu-latest", "windows-latest"]
#python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
os: ["ubuntu-latest"]
python-version: ["3.13"]

runs-on: ${{ matrix.os }}

Expand All @@ -23,15 +27,26 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: "poetry"
cache: "pip"

- name: Install Poetry
uses: snok/install-poetry@v1
with:
version: latest
virtualenvs-create: true
virtualenvs-in-project: true
installer-parallel: true

- name: Install dependencies with Poetry and StreamSnapper extras
run: poetry install --extras "all"
- name: Cache Poetry virtualenv
uses: actions/cache@v3
with:
path: .venv
key: venv-${{ runner.os }}-${{ matrix.python-version }}-${{ hashFiles('**/poetry.lock') }}
restore-keys: |
venv-${{ runner.os }}-${{ matrix.python-version }}-
- name: Install dependencies
run: poetry install --extras "all" --no-interaction

- name: Run tests
run: poetry run pytest tests/all.py

0 comments on commit c97a9e0

Please sign in to comment.