Skip to content

Commit

Permalink
Leverage env var
Browse files Browse the repository at this point in the history
  • Loading branch information
hynek committed Apr 11, 2024
1 parent 15cae9c commit a2dd70a
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ env:
FORCE_COLOR: "1" # Make tools pretty.
PIP_DISABLE_PIP_VERSION_CHECK: "1"
PIP_NO_PYTHON_VERSION_WARNING: "1"
UV_SYSTEM_PYTHON: "1"

permissions: {}

Expand Down Expand Up @@ -58,7 +59,7 @@ jobs:

- name: Prepare & run Nox
run: |
uv pip install --system nox "tomli; python_version<'3.11'"
uv pip install nox "tomli; python_version<'3.11'"
python -Im nox \
--python ${{ matrix.python-version }} \
--sessions tests \
Expand Down Expand Up @@ -93,7 +94,7 @@ jobs:

- name: Combine coverage & fail if it's <100%.
run: |
uv pip install --system --upgrade coverage[toml]
uv pip install --upgrade coverage[toml]
python -Im coverage combine
python -Im coverage html --skip-covered --skip-empty
Expand Down Expand Up @@ -134,7 +135,7 @@ jobs:
cache: pip
- uses: hynek/setup-cached-uv@v1

- run: uv pip install --system nox "tomli; python_version<'3.11'"
- run: uv pip install nox "tomli; python_version<'3.11'"

- name: Check using Mypy
run: |
Expand Down Expand Up @@ -168,7 +169,7 @@ jobs:

- name: Prepare & run Nox
run: |
uv pip install --system nox
uv pip install nox
python -Im nox \
--sessions mypy_pkg
Expand All @@ -192,12 +193,14 @@ jobs:

- name: Prepare & run Nox
run: |
uv pip install --system nox
uv pip install nox
python -Im nox \
--session docs
install-dev:
name: Verify dev env
env:
UV_SYSTEM_PYTHON: "0"
runs-on: ${{ matrix.os }}
strategy:
matrix:
Expand Down

0 comments on commit a2dd70a

Please sign in to comment.