Skip to content

Commit

Permalink
fixup tox lock file
Browse files Browse the repository at this point in the history
  • Loading branch information
webknjaz committed Aug 21, 2024
1 parent 09cf2a5 commit 03d8f14
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 5 deletions.
27 changes: 23 additions & 4 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -442,12 +442,31 @@ jobs:
steps.calc-cache-key-py.outputs.py-hash-key
}}-
${{ runner.os }}-pip-
- name: Identify tox's own lock file
id: tox-deps
run: >
LOCK_FILE_PATH="requirements/$(
python bin/print_lockfile_base_name.py tox
).txt"
echo lock-file="$(
ls -1 "${LOCK_FILE_PATH}"
|| >&2 echo "${LOCK_FILE_PATH}" not found, not injecting...
)"
>> "${GITHUB_OUTPUT}"
shell: bash # windows compat

- name: Install tox
run: >-
python -m
pip install
--user
tox
python -Im pip install -r requirements/tox-tox.in
${{
steps.tox-deps.outputs.lock-file
&& format('--constraint={0}', steps.tox-deps.outputs.lock-file)
|| ''
}}
shell: bash # windows compat

- name: Pre-populate the tox env
run: >-
Expand Down
25 changes: 24 additions & 1 deletion .github/workflows/reusable-tox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -224,8 +224,31 @@ jobs:
steps.calc-cache-key-py.outputs.py-hash-key
}}-
${{ runner.os }}-pip-
- name: Identify tox's own lock file
id: tox-deps
run: >
LOCK_FILE_PATH="requirements/$(
python bin/print_lockfile_base_name.py tox
).txt"
echo lock-file="$(
ls -1 "${LOCK_FILE_PATH}"
|| >&2 echo "${LOCK_FILE_PATH}" not found, not injecting...
)"
>> "${GITHUB_OUTPUT}"
shell: bash # windows compat

- name: Install tox
run: python -Im pip install tox
run: >-
python -Im pip install -r requirements/tox-tox.in
${{
steps.tox-deps.outputs.lock-file
&& format('--constraint={0}', steps.tox-deps.outputs.lock-file)
|| ''
}}
shell: bash # windows compat

- name: Make the env clean of non-test files
if: inputs.toxenv == 'metadata-validation'
Expand Down

0 comments on commit 03d8f14

Please sign in to comment.