Skip to content

Commit

Permalink
abatilo
Browse files Browse the repository at this point in the history
  • Loading branch information
ikappaki committed Jul 21, 2024
1 parent ede7314 commit 70e04f0
Showing 1 changed file with 12 additions and 15 deletions.
27 changes: 12 additions & 15 deletions .github/workflows/tests-run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,21 +24,18 @@ jobs:
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.version }}
# - name: Cache dependencies
# id: cache-deps
# uses: actions/cache@v3
# with:
# path: |
# .tox
# ~/.cache/pip
# ~/.cache/pypoetry
# ~/.local/bin/poetry
# ~/.local/share/pypoetry
# key: ${{ runner.os }}-python-${{ matrix.version }}-poetry-${{ hashFiles('.github/workflows/run-tests.yml', 'pyproject.toml', 'tox.ini') }}
- name: Run image
- name: Install poetry
uses: abatilo/actions-poetry@v2
- name: Setup a local virtual environment (if no poetry.toml file)
run: |
poetry config virtualenvs.create true --local
poetry config virtualenvs.in-project true --local
- uses: actions/cache@v3
name: Define a cache for the virtual environment based on the dependencies lock file
with:
path: ./.venv
key: venv-${{ hashFiles('poetry.lock') }}
- name: Install the project dependencies
run: poetry install
- name: Run tests
run: |
poetry run pytest
- name: Run the automated tests (for example)
run: poetry run pytest -v

0 comments on commit 70e04f0

Please sign in to comment.