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
14 changes: 12 additions & 2 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: "Coverage"

on: [push]

env:
UV_SYSTEM_PYTHON: 1

jobs:
coverage:
runs-on: ${{ matrix.os }}
Expand All @@ -16,8 +20,14 @@ jobs:
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- name: Install uv
uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
with:
# Install a specific version of uv.
version: "0.11.28"
enable-cache: true
- name: Install dependencies
run: pip install tox tox-uv
run: uv pip install tox tox-uv
- name: Run Tests and Record Coverage
run: |
tox -e coverage
uv run tox -e coverage
20 changes: 15 additions & 5 deletions .github/workflows/docs_latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ on:
# You should remember to delete the generated test-XXXXXX folder on the gh-pages branch after you are done with them.
workflow_dispatch:

env:
UV_SYSTEM_PYTHON: 1

jobs:
build:
name: 🚀📄 Build and deploy documentation to GitHub Pages
Expand All @@ -34,24 +37,31 @@ jobs:
- name: Set routing name to test-XXXXXX
if: github.ref != 'refs/heads/main'
run: echo "REF_NAME=test-$(shuf -i 100000-999999 -n 1)" >> "$GITHUB_ENV"
- uses: actions/setup-python@v6
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- name: Install uv
uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
with:
# Install a specific version of uv.
version: "0.11.28"
enable-cache: true
- name: Checkout
uses: actions/checkout@v7
with:
fetch-depth: 0 # otherwise, you will fail to push refs to dest repo
- name: Install dependencies
run: |
pip install tox tox-uv
pip install -r requirements.txt
uv pip install tox tox-uv
uv pip install -r requirements.txt
# Note: The sphinx action below can only install a single requirements file.
- name: Build JSON Schemas
run: tox -e generate_json_schemas
run: uv run tox -e generate_json_schemas
- name: Build BO4E package
# Note: This step necessary to correctly set the version in the JSON-Schema-links
run: |
pip install -e .
uv pip install -e .
python -c "import bo4e; print(bo4e.__gh_version__)"
- name: Run kroki with docker
run: |
Expand Down
14 changes: 12 additions & 2 deletions .github/workflows/linting.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: "Linting"
on: [push]

env:
UV_SYSTEM_PYTHON: 1

jobs:
linting:
name: Python Code Quality and Lint
Expand All @@ -15,8 +19,14 @@ jobs:
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- name: Install uv
uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
with:
# Install a specific version of uv.
version: "0.11.28"
enable-cache: true
- name: Install dependencies
run: pip install tox tox-uv
run: uv pip install tox tox-uv
- name: Run ${{ matrix.linter-env }}
run: |
tox -e ${{ matrix.linter-env }}
uv run tox -e ${{ matrix.linter-env }}
14 changes: 12 additions & 2 deletions .github/workflows/packaging_test.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: "Packaging Test"

on: [push]

env:
UV_SYSTEM_PYTHON: 1

jobs:
check_packaging:
runs-on: ${{ matrix.os }}
Expand All @@ -14,8 +18,14 @@ jobs:
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- name: Install uv
uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
with:
# Install a specific version of uv.
version: "0.11.28"
enable-cache: true
- name: Install dependencies
run: pip install tox tox-uv
run: uv pip install tox tox-uv
- name: Run Packaging Test
run: |
tox -e test_packaging
uv run tox -e test_packaging
110 changes: 0 additions & 110 deletions .github/workflows/python-publish-scheduled.yml

This file was deleted.

Loading
Loading