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

Bump setup-uv to v5, change Python install flow #194

Merged
merged 2 commits into from
Dec 27, 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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 12 additions & 16 deletions .github/workflows/lint-and-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,11 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v4
- name: Install Python 3.10 interpreter
run: uv python install 3.10
- name: Install the project
run: uv sync --group dev
uses: astral-sh/setup-uv@v5
with:
python-version: "3.10"
- name: Run pre-commit checks
run: uvx pre-commit run --all-files --verbose --show-diff-on-failure
run: uv run pre-commit run --all-files --verbose --show-diff-on-failure
test:
name: Test nnbench on ${{ matrix.os }} on Python ${{ matrix.python-version }}
runs-on: ${{ matrix.os }}
Expand All @@ -33,13 +31,11 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v4
- name: Install Python ${{ matrix.python-version }}
run: uv python install ${{ matrix.python-version }}
- name: Install the project in developer mode
run: uv sync --group dev
- name: Execute python tests
run: uv run pytest -s
uses: astral-sh/setup-uv@v5
with:
python-version: ${{ matrix.python-version }}
- name: Test with Python ${{ matrix.python-version }}
run: uv run --frozen pytest -s
docs:
name: Publish latest documentation for nnbench
runs-on: ubuntu-latest
Expand All @@ -48,9 +44,9 @@ jobs:
with:
fetch-depth: 0
- name: Install uv
uses: astral-sh/setup-uv@v4
- name: Install Python 3.11 interpreter
run: uv python install 3.11
uses: astral-sh/setup-uv@v5
with:
python-version: "3.11"
- name: Install the project
run: uv sync --group docs
- name: Build documentation using mike
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ jobs:
with:
fetch-depth: 0
- name: Install uv
uses: astral-sh/setup-uv@v4
- name: Install Python 3.11 interpreter
run: uv python install 3.11
uses: astral-sh/setup-uv@v5
with:
python-version: "3.11"
- name: Install the project
run: uv sync --all-groups
- name: Build and check
Expand Down
Loading