diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index 736c8bea..427671ac 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -15,12 +15,6 @@ jobs: with: fetch-depth: 1 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v3 - with: - python-version: ${{ matrix.python-version }} - cache: "poetry" - - name: Install Poetry run: pipx install poetry @@ -28,6 +22,12 @@ jobs: run: | poetry config virtualenvs.path ~/.virtualenvs${{ matrix.python-version }} + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v3 + with: + python-version: ${{ matrix.python-version }} + cache: "poetry" + - name: Install dependencies run: poetry install @@ -48,12 +48,6 @@ jobs: with: fetch-depth: 1 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v3 - with: - python-version: ${{ matrix.python-version }} - cache: "poetry" - - name: Install Poetry run: pipx install poetry @@ -61,6 +55,12 @@ jobs: run: | poetry config virtualenvs.path ~/.virtualenvs${{ matrix.python-version }} + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v3 + with: + python-version: ${{ matrix.python-version }} + cache: "poetry" + - name: Install dependencies run: poetry install -E minify