Skip to content

Commit

Permalink
Use natve python dep caching
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacbmiller committed Mar 3, 2024
1 parent 6b9dbf9 commit f2353c8
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions .github/workflows/run_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,6 @@ jobs:
python-version: ["3.9"]
steps:
- uses: actions/checkout@v3

- name: Cache Poetry virtual environment
uses: actions/cache@v3
id: cached-poetry-dependencies
with:
path: ~/.cache/pypoetry
key: ${{ runner.os }}-poetry-${{ hashFiles('**/poetry.lock') }}
restore-keys: |
${{ runner.os }}-poetry-
- name: Install poetry
run: pipx install poetry
- name: Set up python ${{ matrix.python-version }}
Expand All @@ -51,7 +42,6 @@ jobs:
python-version: ${{ matrix.python-version }}
cache: "poetry"
- name: Install dependencies
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
run: poetry install --no-interaction --no-root
- name: Run tests with pytest
run: poetry run pytest tests/
Expand All @@ -72,12 +62,6 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
cache: "poetry"
- uses: actions/cache@v3
with:
path: ~/.cache/pypoetry
key: ${{ runner.os }}-poetry-${{ hashFiles('**/poetry.lock') }}
restore-keys: |
${{ runner.os }}-poetry-
- name: Build
run: poetry build
- name: Install built package
Expand All @@ -103,11 +87,5 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
cache: "poetry"
- uses: actions/cache@v3
with:
path: ~/.cache/pypoetry
key: ${{ runner.os }}-poetry-${{ hashFiles('**/poetry.lock') }}
restore-keys: |
${{ runner.os }}-poetry-
- name: Run setup.py build
run: python setup.py build

0 comments on commit f2353c8

Please sign in to comment.