diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 13a1a71b..222dfa59 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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: @@ -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