forked from cjolowicz/cookiecutter-hypermodern-python
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use absolute paths when referencing files in GHA (#63)
* Use absolute paths when referencing files in GHA * Add 'raw' tags to avoid Cookiecutter interpreting tags --------- Co-authored-by: Arne Sørli <[email protected]>
- Loading branch information
1 parent
b427b1e
commit fdb18a9
Showing
6 changed files
with
42 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,11 +27,12 @@ jobs: | |
steps: | ||
- name: Check out the repository | ||
uses: actions/checkout@v4 | ||
|
||
{% raw %} | ||
- name: Install Poetry | ||
run: | | ||
pipx install --pip-args "-c .github/workflows/constraints.txt" poetry | ||
pipx install --pip-args "-c ${{ github.workspace }}/.github/workflows/constraints.txt" poetry | ||
poetry --version | ||
{% endraw %} | ||
|
||
- name: Set up Python | ||
uses: actions/[email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,16 +24,18 @@ jobs: | |
uses: actions/[email protected] | ||
with: | ||
python-version: "3.12" | ||
|
||
{% raw %} | ||
- name: Upgrade pip | ||
run: | | ||
pip install -c .github/workflows/constraints.txt pip | ||
pip install -c ${{ github.workspace }}/.github/workflows/constraints.txt pip | ||
pip --version | ||
{% endraw %} | ||
{% raw %} | ||
- name: Install Poetry | ||
run: | | ||
pip install -c .github/workflows/constraints.txt poetry | ||
pip install -c ${{ github.workspace }}/.github/workflows/constraints.txt poetry | ||
poetry --version | ||
{% endraw %} | ||
|
||
- name: Check if there is a parent commit | ||
id: check-parent-commit | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,11 +41,12 @@ jobs: | |
uses: actions/[email protected] | ||
with: | ||
python-version: ${{"{{"}} matrix.python {{"}}"}} | ||
|
||
{% raw %} | ||
- name: Upgrade pip | ||
run: | | ||
pip install -c .github/workflows/constraints.txt pip | ||
pip install -c ${{ github.workspace }}/.github/workflows/constraints.txt pip | ||
pip --version | ||
{% endraw %} | ||
|
||
- name: Upgrade pip in virtual environments | ||
shell: python | ||
|
@@ -55,17 +56,19 @@ jobs: | |
with open(os.environ["GITHUB_ENV"], mode="a") as io: | ||
print(f"VIRTUALENV_PIP={pip.__version__}", file=io) | ||
{% raw %} | ||
- name: Install Poetry | ||
run: | | ||
pipx install --pip-args "-c .github/workflows/constraints.txt" poetry | ||
pipx install --pip-args "-c ${{ github.workspace }}/.github/workflows/constraints.txt" poetry | ||
poetry --version | ||
{% endraw %} | ||
{% raw %} | ||
- name: Install Nox | ||
run: | | ||
pipx install --pip-args "-c .github/workflows/constraints.txt" nox | ||
pipx inject --pip-args "-c .github/workflows/constraints.txt" nox nox-poetry | ||
pipx install --pip-args "-c ${{ github.workspace }}/.github/workflows/constraints.txt" nox | ||
pipx inject --pip-args "-c ${{ github.workspace }}/.github/workflows/constraints.txt" nox nox-poetry | ||
nox --version | ||
{% endraw %} | ||
|
||
- name: Compute pre-commit cache key | ||
if: matrix.session == 'pre-commit' | ||
|
@@ -123,22 +126,25 @@ jobs: | |
uses: actions/[email protected] | ||
with: | ||
python-version: "3.12" | ||
|
||
{% raw %} | ||
- name: Upgrade pip | ||
run: | | ||
pip install -c .github/workflows/constraints.txt pip | ||
pip install -c ${{ github.workspace }}/.github/workflows/constraints.txt pip | ||
pip --version | ||
{% endraw %} | ||
{% raw %} | ||
- name: Install Poetry | ||
run: | | ||
pipx install --pip-args "-c .github/workflows/constraints.txt" poetry | ||
pipx install --pip-args "-c ${{ github.workspace }}/.github/workflows/constraints.txt" poetry | ||
poetry --version | ||
{% endraw %} | ||
{% raw %} | ||
- name: Install Nox | ||
run: | | ||
pipx install --pip-args "-c .github/workflows/constraints.txt" nox | ||
pipx inject --pip-args "-c .github/workflows/constraints.txt" nox nox-poetry | ||
pipx install --pip-args "-c ${{ github.workspace }}/.github/workflows/constraints.txt" nox | ||
pipx inject --pip-args "-c ${{ github.workspace }}/.github/workflows/constraints.txt" nox nox-poetry | ||
nox --version | ||
{% endraw %} | ||
|
||
- name: Download coverage data | ||
uses: actions/download-artifact@v4 | ||
|