Skip to content

Commit

Permalink
Merge #3130
Browse files Browse the repository at this point in the history
3130: Make sure to upgrade pip before trying to install nox. r=adamreichold a=adamreichold



Co-authored-by: Adam Reichold <adam.reichold@t-online.de>
  • Loading branch information
bors[bot] and adamreichold committed May 1, 2023
2 parents f060088 + b52730a commit f9cb5e5
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
architecture: ${{ inputs.python-architecture }}

- name: Install nox
run: python -m pip install -U pip nox
run: python -m pip install --upgrade pip && pip install nox

- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@master
Expand Down Expand Up @@ -172,7 +172,7 @@ jobs:
set -ex
sudo apt-get install -y mingw-w64 llvm
rustup target add x86_64-pc-windows-gnu x86_64-pc-windows-msvc
python -m pip install cargo-xwin
pip install cargo-xwin
# abi3
cargo build --manifest-path examples/maturin-starter/Cargo.toml --features abi3 --target x86_64-pc-windows-gnu
cargo xwin build --manifest-path examples/maturin-starter/Cargo.toml --features abi3 --target x86_64-pc-windows-msvc
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- run: pip install nox
- run: python -m pip install --upgrade pip && pip install nox
- run: nox -s check-changelog
12 changes: 6 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- run: pip install nox
- run: python -m pip install --upgrade pip && pip install nox
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt
Expand Down Expand Up @@ -101,7 +101,7 @@ jobs:
- uses: actions/setup-python@v4
with:
architecture: ${{ matrix.platform.python-architecture }}
- run: python -m pip install nox
- run: python -m pip install --upgrade pip && pip install nox
- if: matrix.msrv == 'MSRV'
name: Prepare minimal package versions (MSRV only)
run: nox -s set-minimal-package-versions
Expand Down Expand Up @@ -249,7 +249,7 @@ jobs:
continue-on-error: true
- uses: dtolnay/rust-toolchain@stable
- uses: taiki-e/install-action@valgrind
- run: python -m pip install -U pip nox
- run: python -m pip install --upgrade pip && pip install nox
- run: nox -s test-rust -- release skip-full
env:
CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_RUNNER: valgrind --leak-check=no --error-exitcode=1
Expand All @@ -271,7 +271,7 @@ jobs:
with:
components: rust-src
- run: cargo install cargo-careful
- run: python -m pip install -U pip nox
- run: python -m pip install --upgrade pip && pip install nox
- run: nox -s test-rust -- careful skip-full
env:
RUST_BACKTRACE: 1
Expand Down Expand Up @@ -305,7 +305,7 @@ jobs:
- name: Install cargo-llvm-cov
if: steps.should-skip.outputs.skip != 'true'
uses: taiki-e/install-action@cargo-llvm-cov
- run: python -m pip install -U pip nox
- run: python -m pip install --upgrade pip && pip install nox
if: steps.should-skip.outputs.skip != 'true'
- run: nox -s coverage
if: steps.should-skip.outputs.skip != 'true'
Expand All @@ -330,7 +330,7 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: 14
- run: pip install nox
- run: python -m pip install --upgrade pip && pip install nox
- uses: actions/cache@v3
id: cache
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
# This builds the book in target/guide.
- name: Build the guide
run: |
pip install nox
python -m pip install --upgrade pip && pip install nox
nox -s build-guide
env:
PYO3_VERSION_TAG: ${{ steps.prepare_tag.outputs.tag_name }}
Expand Down Expand Up @@ -125,7 +125,7 @@ jobs:

- name: Run benchmarks
run: |
pip install nox
python -m pip install --upgrade pip && pip install nox
nox -f pytests/noxfile.py -s bench -- --benchmark-json $(pwd)/output.json
- name: Store benchmark result
uses: benchmark-action/github-action-benchmark@v1
Expand Down
4 changes: 2 additions & 2 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -405,8 +405,8 @@ def check_changelog(session: nox.Session):
print(fragment.name)


@nox.session(name="set-minimal-package-versions")
def set_minimal_package_versions(session: nox.Session, venv_backend="none"):
@nox.session(name="set-minimal-package-versions", venv_backend="none")
def set_minimal_package_versions(session: nox.Session):
from collections import defaultdict

try:
Expand Down

0 comments on commit f9cb5e5

Please sign in to comment.