Skip to content

Commit

Permalink
Took out cache to get poetry to run.
Browse files Browse the repository at this point in the history
  • Loading branch information
AnotherSamWilson committed Jul 27, 2024
1 parent f300daf commit 4131751
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/run_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,18 +29,18 @@ jobs:
virtualenvs-in-project: true
installer-parallel: true

# load cached venv if cache exists
- name: Load cached venv
id: cached-poetry-dependencies
uses: actions/cache@v3
with:
path: .venv
key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}
# # load cached venv if cache exists
# - name: Load cached venv
# id: cached-poetry-dependencies
# uses: actions/cache@v3
# with:
# path: .venv
# key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}

# install dependencies if cache does not exist
- name: Install dependencies
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
run: poetry install --no-interaction --no-root
# # install dependencies if cache does not exist
# - name: Install dependencies
# if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
# run: poetry install --no-interaction --no-root

# install root project
- name: Install project
Expand All @@ -59,7 +59,7 @@ jobs:
run: isort miceforest --diff

- name: Pytest
run: pytest --cov=miceforest --cov-report html
run: poetry run pytest --cov=miceforest --cov-report html

- name: Upload coverage reports to Codecov
run: |
Expand Down

0 comments on commit 4131751

Please sign in to comment.