Skip to content

Commit

Permalink
Add depends-on clause for github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
DantasB committed Oct 8, 2024
1 parent 63c1a2e commit 411061f
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,14 @@ jobs:
version: 1.5.1
virtualenvs-create: true
virtualenvs-in-project: true
installer-parallel: true
outputs:
poetry-version: ${{ steps.poetry-version.outputs.version }}

# This job is used to install dependencies and run tests for each supported Python version
build:
# This job depends on the setup-poetry job
needs: setup-poetry
# The type of runner that the job will run on
runs-on: ubuntu-latest
strategy:
Expand All @@ -47,14 +50,6 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

- name: Install Poetry
uses: snok/install-poetry@v1
with:
version: 1.5.1
virtualenvs-create: true
virtualenvs-in-project: true
installer-parallel: true

- name: Load Cached Environment
id: cached-poetry-dependencies
uses: actions/cache@v4
Expand All @@ -68,4 +63,4 @@ jobs:

# Runs a single command using the runners shell
- name: Run all tests
run: poetry run./runtests
run: poetry run ./runtests

0 comments on commit 411061f

Please sign in to comment.