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

CI: Increase uv timeout and reduce deps install #146

Merged
merged 6 commits into from
Nov 11, 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
6 changes: 4 additions & 2 deletions .github/workflows/build_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ jobs:
# - windows-latest
fail-fast: false
runs-on: ${{ matrix.os }}
env:
UV_HTTP_TIMEOUT: 300 # max 5min to install deps
steps:
- name: Setup pandoc
run: |
Expand All @@ -42,7 +44,7 @@ jobs:
run: uv python install ${{ matrix.python-version }}

- name: Install the project
run: uv sync --all-extras --dev
run: uv sync --extra docs

- name: Build docs
run: uv run mkdocs build
Expand Down Expand Up @@ -76,7 +78,7 @@ jobs:
python-version-file: "pyproject.toml"

- name: Install the project
run: uv sync --all-extras --dev
run: uv sync --extra docs

- name: Deploy docs
run: uv run mkdocs gh-deploy --force
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ on:
jobs:
release:
runs-on: ubuntu-latest
env:
UV_HTTP_TIMEOUT: 300 # max 5min to install deps
environment:
name: pypi
url: https://pypi.org/p/toyml
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ on:
jobs:
build:
runs-on: ubuntu-latest
env:
UV_HTTP_TIMEOUT: 300 # max 5min to install deps
strategy:
fail-fast: false
matrix:
Expand All @@ -29,7 +31,7 @@ jobs:
python-version-file: "pyproject.toml"

- name: Install the project
run: uv sync --all-extras --dev
run: uv sync --extra dev --extra plot

- name: Lint with Mypy
run: uv run mypy toyml tests
Expand Down