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: fix uv timeout #149

Merged
merged 1 commit into from
Nov 12, 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
18 changes: 10 additions & 8 deletions .github/workflows/build_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,18 @@ jobs:
strategy:
matrix:
python-version:
# - "3.10"
# - "3.11"
# - "3.12"
# - "3.10"
# - "3.11"
# - "3.12"
- "3.13"
os:
- ubuntu-latest
# - macos-latest
# - windows-latest
# - macos-latest
# - windows-latest
fail-fast: false
runs-on: ${{ matrix.os }}
env:
UV_HTTP_TIMEOUT: 300 # max 5min to install deps
UV_HTTP_TIMEOUT: 900 # max 15min to install deps
steps:
- name: Setup pandoc
run: |
Expand All @@ -32,7 +32,7 @@ jobs:

- uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-depth: 0

- name: Install uv
uses: astral-sh/setup-uv@v2
Expand All @@ -57,14 +57,16 @@ jobs:
needs: build
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
runs-on: ubuntu-latest
env:
UV_HTTP_TIMEOUT: 900 # max 15min to install deps
steps:
- name: Setup pandoc
run: |
wget https://github.com/jgm/pandoc/releases/download/2.18/pandoc-2.18-1-amd64.deb && sudo dpkg -i pandoc-2.18-1-amd64.deb
sudo apt-get install pandoc-citeproc
- uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-depth: 0

- name: Install uv
uses: astral-sh/setup-uv@v2
Expand Down
36 changes: 18 additions & 18 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,33 +2,33 @@ name: Release

on:
release:
types: [ published ]
types: [published]

jobs:
release:
runs-on: ubuntu-latest
env:
UV_HTTP_TIMEOUT: 300 # max 5min to install deps
UV_HTTP_TIMEOUT: 900 # max 15min to install deps
environment:
name: pypi
url: https://pypi.org/p/toyml
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v2
with:
enable-cache: true
cache-dependency-glob: "uv.lock"
- name: "Set up Python"
uses: actions/setup-python@v5
with:
python-version-file: "pyproject.toml"
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v2
with:
enable-cache: true
cache-dependency-glob: "uv.lock"
- name: "Set up Python"
uses: actions/setup-python@v5
with:
python-version-file: "pyproject.toml"

- name: Install the project
run: uv sync --all-extras --dev
- name: Build package
run: uv build
- name: Publish
uses: pypa/gh-action-pypi-publish@release/v1
- name: Install the project
run: uv sync --all-extras --dev
- name: Build package
run: uv build
- name: Publish
uses: pypa/gh-action-pypi-publish@release/v1
8 changes: 4 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,20 @@ name: Tests

on:
push:
branches: [ master ]
branches: [master]
pull_request:
branches: [ master ]
branches: [master]
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
env:
UV_HTTP_TIMEOUT: 300 # max 5min to install deps
UV_HTTP_TIMEOUT: 900 # max 15min to install deps
strategy:
fail-fast: false
matrix:
python-version: [ "3.10", "3.11", "3.12", "3.13"]
python-version: ["3.10", "3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v4

Expand Down