Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a nox session for regenerating pinned requirements files used in CI #2664

Merged
merged 18 commits into from
May 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 8 additions & 2 deletions .github/workflows/update-pinned-reqs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,17 @@ jobs:
python-version: 3.12

- name: Install tox and its extensions
run: python -m pip install --upgrade tox tox-uv
run: python -m pip install --upgrade tox tox-uv nox uv

- name: Rebuild requirements
# Temporarily use requirements files generated both by tox and nox
# during the switchover from tox to nox.
Comment on lines +29 to +30
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because the requirements filenames are changing, we'll need the files generated by tox for the remaining tox environments, as well as the files generated by nox for the current and forthcoming nox sessions. It'll be messier having duplicate requirements files under different names, but I want to switch things over completely soon.


- name: Rebuild requirements with tox
run: tox -e requirements

- name: Rebuild requirements with nox
run: nox -s requirements

# When a PR is created by a GitHub Action, normally the checks will
# not be run. While the simplest workaround would have been to open
# and close the PR, an alternative is to authenticate with GitHub
Expand Down
2 changes: 2 additions & 0 deletions changelog/2664.internal.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Converted the |tox| environment for regenerating the requirements files
used in continuous integration checks to |nox|.