Skip to content

Commit

Permalink
ci: Explicitly install poetry-plugin-export in CI environments that…
Browse files Browse the repository at this point in the history
… need to export requirements (#2055)

* ci: Explicitly install `poetry-plugin-export` in CI environments that need exporting requirements

* ci: BUmp `poetry-plugin-export`
  • Loading branch information
edgarrmondragon authored Nov 17, 2023
1 parent 2a64cf6 commit 5b84912
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 9 deletions.
1 change: 1 addition & 0 deletions .github/workflows/constraints.txt
Original file line number Diff line number Diff line change
@@ -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
8 changes: 6 additions & 2 deletions .github/workflows/cookiecutter-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
22 changes: 15 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 5b84912

Please # to comment.