Skip to content

Commit

Permalink
feat: simplifing pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
christopherfrige committed Mar 12, 2024
1 parent 015f0f3 commit 5bb1de1
Showing 1 changed file with 2 additions and 23 deletions.
25 changes: 2 additions & 23 deletions .github/workflows/test-backend.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,37 +26,16 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: ${{ env.PYTHON_VERSION }}


- name: Load cached Poetry installation
id: cached-poetry
uses: actions/cache@v3
with:
path: ~/.local
key: poetry-0
cache: 'poetry'


- name: Install poetry
if: steps.cached-poetry.outputs.cache-hit != 'true'
uses: snok/install-poetry@v1
with:
version: 1.5.1
virtualenvs-create: true
virtualenvs-in-project: true
virtualenvs-path: ~/venv

run: pipx install poetry

- name: Load cached venv
id: cached-poetry-dependencies
uses: actions/cache@v3
with:
path: ~/venv
key: venv-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }}


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


- name: Run unit tests
Expand Down

0 comments on commit 5bb1de1

Please sign in to comment.