From 5b849128a28689087b5d8bfa8406ce615ed92eb6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edgar=20Ram=C3=ADrez=20Mondrag=C3=B3n?= <16805946+edgarrmondragon@users.noreply.github.com> Date: Fri, 17 Nov 2023 17:00:15 -0600 Subject: [PATCH] ci: Explicitly install `poetry-plugin-export` in CI environments that need to export requirements (#2055) * ci: Explicitly install `poetry-plugin-export` in CI environments that need exporting requirements * ci: BUmp `poetry-plugin-export` --- .github/workflows/constraints.txt | 1 + .github/workflows/cookiecutter-e2e.yml | 8 ++++++-- .github/workflows/test.yml | 22 +++++++++++++++------- 3 files changed, 22 insertions(+), 9 deletions(-) diff --git a/.github/workflows/constraints.txt b/.github/workflows/constraints.txt index 8ee1d08be..0e226fe7b 100644 --- a/.github/workflows/constraints.txt +++ b/.github/workflows/constraints.txt @@ -1,5 +1,6 @@ pip==23.3.1 poetry==1.7.1 +poetry-plugin-export==1.6.0 pre-commit==3.5.0 nox==2023.4.22 nox-poetry==1.0.3 diff --git a/.github/workflows/cookiecutter-e2e.yml b/.github/workflows/cookiecutter-e2e.yml index d3ed5cf9f..b36df1fa4 100644 --- a/.github/workflows/cookiecutter-e2e.yml +++ b/.github/workflows/cookiecutter-e2e.yml @@ -38,9 +38,13 @@ jobs: pip --version - name: Install Poetry + env: + PIP_CONSTRAINT: .github/workflows/constraints.txt run: | pipx install poetry + pipx inject poetry poetry-plugin-export poetry --version + poetry self show plugins - name: Setup Python ${{ matrix.python-version }} uses: actions/setup-python@v4.7.1 @@ -59,8 +63,8 @@ jobs: env: PIP_CONSTRAINT: .github/workflows/constraints.txt run: | - pipx install --pip-args=--constraint=.github/workflows/constraints.txt nox - pipx inject --pip-args=--constraint=.github/workflows/constraints.txt nox nox-poetry + pipx install nox + pipx inject nox nox-poetry nox --version - name: Run Nox diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 19381e495..7077ba5be 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -62,7 +62,9 @@ jobs: PIP_CONSTRAINT: .github/workflows/constraints.txt run: | pipx install poetry + pipx inject poetry poetry-plugin-export poetry --version + poetry self show plugins - name: Setup Python ${{ matrix.python-version }} uses: actions/setup-python@v4.7.1 @@ -83,8 +85,8 @@ jobs: env: PIP_CONSTRAINT: .github/workflows/constraints.txt run: | - pipx install --pip-args=--constraint=.github/workflows/constraints.txt nox - pipx inject --pip-args=--constraint=.github/workflows/constraints.txt nox nox-poetry + pipx install nox + pipx inject nox nox-poetry nox --version - name: Run Nox @@ -122,7 +124,9 @@ jobs: PIP_CONSTRAINT: .github/workflows/constraints.txt run: | pipx install poetry + pipx inject poetry poetry-plugin-export poetry --version + poetry self show plugins - name: Setup Python 3.10 uses: actions/setup-python@v4.7.1 @@ -143,8 +147,8 @@ jobs: env: PIP_CONSTRAINT: .github/workflows/constraints.txt run: | - pipx install --pip-args=--constraint=.github/workflows/constraints.txt nox - pipx inject --pip-args=--constraint=.github/workflows/constraints.txt nox nox-poetry + pipx install nox + pipx inject nox nox-poetry nox --version - name: Run Nox @@ -160,9 +164,13 @@ jobs: uses: actions/checkout@v4.1.1 - name: Install Poetry + env: + PIP_CONSTRAINT: .github/workflows/constraints.txt run: | - pipx install --pip-args=--constraint=.github/workflows/constraints.txt poetry + pipx install poetry + pipx inject poetry poetry-plugin-export poetry --version + poetry self show plugins - name: Set up Python uses: actions/setup-python@v4.7.1 @@ -185,8 +193,8 @@ jobs: env: PIP_CONSTRAINT: .github/workflows/constraints.txt run: | - pipx install --pip-args=--constraint=.github/workflows/constraints.txt nox - pipx inject --pip-args=--constraint=.github/workflows/constraints.txt nox nox-poetry + pipx install nox + pipx inject nox nox-poetry nox --version - name: Combine coverage data and display human readable report