Skip to content
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
17 changes: 10 additions & 7 deletions .github/workflows/black.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,19 @@ jobs:
steps:
- uses: actions/checkout@v6

- name: Set up Python
uses: actions/setup-python@v6
- name: Install uv
uses: astral-sh/setup-uv@v5
with:
python-version: "3.12"
enable-cache: true

- name: Install Black
- name: Create virtual environment
run: |
python -m pip install --upgrade pip
pip install black>=24.0.0
uv venv --clear .venv
echo "$GITHUB_WORKSPACE/.venv/bin" >> $GITHUB_PATH

- name: Install Black
run: uv pip install "black>=24.0.0"

- name: Check code formatting with Black
run: |
black --check --diff --workers 1 .
run: black --check --diff --workers 1 .
17 changes: 8 additions & 9 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,21 +42,20 @@ jobs:
with:
submodules: true

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v6
- name: Install uv
uses: astral-sh/setup-uv@v5
with:
python-version: ${{ matrix.python-version }}
enable-cache: true

- uses: actions/cache@v5
with:
path: ${{ env.pythonLocation }}
key: ${{ env.pythonLocation }}-${{ hashFiles('pyproject.toml') }}
- name: Create virtual environment
run: |
uv venv --clear .venv
echo "$GITHUB_WORKSPACE/.venv/bin" >> $GITHUB_PATH

# Install dependencies
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e .[docs,test]
run: uv pip install -e ".[docs,test]"

# Run spec tests without coverage for non Python 3.10
- name: Run spec_test
Expand Down
15 changes: 9 additions & 6 deletions .github/workflows/ci_cov.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,20 @@ jobs:
with:
submodules: true

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v6
- name: Install uv
uses: astral-sh/setup-uv@v5
with:
python-version: ${{ matrix.python-version }}
enable-cache: true

- name: Create virtual environment
run: |
uv venv --clear .venv
echo "$GITHUB_WORKSPACE/.venv/bin" >> $GITHUB_PATH

# Install dependencies
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install ruff
pip install -e .[docs,test]
run: uv pip install ruff -e ".[docs,test]"

# Run ruff
- name: Lint with ruff
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/ci_windows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,20 @@ jobs:
with:
submodules: false

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v6
- name: Install uv
uses: astral-sh/setup-uv@v5
with:
python-version: ${{ matrix.python-version }}
enable-cache: true

- uses: actions/cache@v5
with:
path: ${{ env.pythonLocation }}
key: ${{ env.pythonLocation }}-${{ hashFiles('pyproject.toml') }}
- name: Create virtual environment
shell: pwsh
run: |
uv venv --clear .venv
Add-Content $env:GITHUB_PATH "$env:GITHUB_WORKSPACE\.venv\Scripts"

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e .[test]
run: uv pip install -e ".[test]"

- name: Test with unittest
env:
Expand Down
22 changes: 13 additions & 9 deletions .github/workflows/codespell.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,20 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Set up Python
uses: actions/setup-python@v6

- name: Install uv
uses: astral-sh/setup-uv@v5
with:
python-version: '3.10'

- name: Install dependencies
enable-cache: true

- name: Create virtual environment
run: |
python -m pip install --upgrade pip
pip install codespell tomli

uv venv --clear .venv
echo "$GITHUB_WORKSPACE/.venv/bin" >> $GITHUB_PATH

- name: Install dependencies
run: uv pip install codespell tomli

- name: Run Codespell
run: codespell .
run: codespell .
58 changes: 27 additions & 31 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,44 +19,40 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- uses: actions/checkout@v6
with:
fetch-depth: 0

- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: '3.10'
- name: Install uv
uses: astral-sh/setup-uv@v5
with:
python-version: '3.10'
enable-cache: true

- name: Cache dependencies
uses: actions/cache@v5
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/pyproject.toml') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Create virtual environment
run: |
uv venv --clear .venv
echo "$GITHUB_WORKSPACE/.venv/bin" >> $GITHUB_PATH

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e .[docs]
- name: Install dependencies
run: uv pip install -e ".[docs]"

- name: Configure Git for GitHub Pages
run: |
git config user.name github-actions
git config user.email github-actions@github.com
- name: Configure Git for GitHub Pages
run: |
git config user.name github-actions
git config user.email github-actions@github.com

- name: Build documentation
run: |
sphinx-build -b html docs docs/_build/html
- name: Build documentation
run: |
sphinx-build -b html docs docs/_build/html

- name: Setup Pages
uses: actions/configure-pages@v5
- name: Setup Pages
uses: actions/configure-pages@v5

- name: Upload artifact
uses: actions/upload-pages-artifact@v4
with:
path: ./docs/_build/html
- name: Upload artifact
uses: actions/upload-pages-artifact@v4
with:
path: ./docs/_build/html

#------------------------------------------------
# Deploy Job: Deploys the built site
Expand Down
15 changes: 9 additions & 6 deletions .github/workflows/links.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,19 @@ jobs:
- name: Checkout
uses: actions/checkout@v6

- name: Setup Python
uses: actions/setup-python@v6
- name: Install uv
uses: astral-sh/setup-uv@v5
with:
python-version: '3.12'
cache: 'pip'
enable-cache: true

- name: Install dependencies
- name: Create virtual environment
run: |
pip install --upgrade pip
pip install -e .[docs]
uv venv --clear .venv
echo "$GITHUB_WORKSPACE/.venv/bin" >> $GITHUB_PATH

- name: Install dependencies
run: uv pip install -e ".[docs]"

- name: Build documentation with Sphinx
run: |
Expand Down
20 changes: 12 additions & 8 deletions .github/workflows/mdformat.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,21 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Set up Python
uses: actions/setup-python@v6

- name: Install uv
uses: astral-sh/setup-uv@v5
with:
python-version: '3.12'

- name: Install dependencies
enable-cache: true

- name: Create virtual environment
run: |
python -m pip install --upgrade pip
pip install mdformat>=0.7.0 mdformat-myst>=0.1.5

uv venv --clear .venv
echo "$GITHUB_WORKSPACE/.venv/bin" >> $GITHUB_PATH

- name: Install dependencies
run: uv pip install "mdformat>=0.7.0" "mdformat-myst>=0.1.5"

- name: Run mdformat (check only)
run: |
mdformat --check --wrap no --number docs/
Expand Down
14 changes: 9 additions & 5 deletions .github/workflows/notebook_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,19 @@ jobs:
with:
submodules: true

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v6
- name: Install uv
uses: astral-sh/setup-uv@v5
with:
python-version: ${{ matrix.python-version }}
enable-cache: true

- name: Install dependencies
- name: Create virtual environment
run: |
python -m pip install --upgrade pip
pip install -e .[examples]
uv venv --clear .venv
echo "$GITHUB_WORKSPACE/.venv/bin" >> $GITHUB_PATH

- name: Install dependencies
run: uv pip install -e ".[examples]"

- name: Test notebook structure and imports
run: |
Expand Down
17 changes: 10 additions & 7 deletions .github/workflows/ruff.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,19 @@ jobs:
- name: Checkout
uses: actions/checkout@v6

- name: Set up Python
uses: actions/setup-python@v6
- name: Install uv
uses: astral-sh/setup-uv@v5
with:
python-version: "3.12"
enable-cache: true

- name: Install Ruff
- name: Create virtual environment
run: |
python -m pip install --upgrade pip
pip install ruff>=0.8.0
uv venv --clear .venv
echo "$GITHUB_WORKSPACE/.venv/bin" >> $GITHUB_PATH

- name: Install Ruff
run: uv pip install "ruff>=0.8.0"

- name: Run Ruff linter
run: |
ruff check .
run: ruff check .
14 changes: 9 additions & 5 deletions .github/workflows/spec_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,19 @@ jobs:
with:
submodules: true

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v6
- name: Install uv
uses: astral-sh/setup-uv@v5
with:
python-version: ${{ matrix.python-version }}
enable-cache: true

- name: Install dependencies
- name: Create virtual environment
run: |
python -m pip install --upgrade --upgrade-strategy eager pip
pip install -e .[test]
uv venv --clear .venv
echo "$GITHUB_WORKSPACE/.venv/bin" >> $GITHUB_PATH

- name: Install dependencies
run: uv pip install -e ".[test]"

- name: Spec Error Tests
id: spec_error_tests
Expand Down
Loading
Loading