Skip to content

Commit

Permalink
Change snoke to abatilo poetry
Browse files Browse the repository at this point in the history
  • Loading branch information
DantasB committed Oct 8, 2024
1 parent 411061f commit 5a1810f
Showing 1 changed file with 11 additions and 17 deletions.
28 changes: 11 additions & 17 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,24 +15,8 @@ on:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This job is used to install Poetry
setup-poetry:
runs-on: ubuntu-latest
steps:
- name: Install Poetry
uses: snok/install-poetry@v1
with:
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
# This workflow contains a single job called "build"
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 @@ -50,6 +34,16 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

- name: Install Poetry
uses: abatilo/actions-poetry@v2
with:
poetry-version: 1.5.1

- name: Setup Local Virtual Environment
run: |
poetry config virtualenvs.create true --local
poetry config virtualenvs.in-project true --local
- name: Load Cached Environment
id: cached-poetry-dependencies
uses: actions/cache@v4
Expand Down

0 comments on commit 5a1810f

Please sign in to comment.