Skip to content

Commit

Permalink
ci: fix step to use python poetry
Browse files Browse the repository at this point in the history
  • Loading branch information
guilatrova committed Jul 8, 2024
1 parent 5d0b800 commit 55e56a6
Showing 1 changed file with 8 additions and 14 deletions.
22 changes: 8 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,25 +31,19 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}

- name: Install poetry
uses: Gr1N/setup-poetry@v7
shell: bash
run: pipx install poetry

- name: Cache poetry dependencies
uses: actions/cache@v2
- name: Set up Python
uses: actions/setup-python@v4
with:
path: ~/.cache/pypoetry/virtualenvs
key: ${{ runner.os }}-poetry-${{ hashFiles('poetry.lock') }}
python-version: ${{ matrix.python-version }}
cache: poetry
# key: ${{ runner.os }}-poetry-${{ hashFiles('poetry.lock') }}

- name: Install dependencies
run: |
python -m pip install --upgrade pip
poetry config virtualenvs.create false
poetry install
run: poetry install --with=dev

- name: Unit tests
run: poetry run pytest -vvv --cov=tryceratops --cov-report=xml
Expand Down

0 comments on commit 55e56a6

Please sign in to comment.