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
21 changes: 8 additions & 13 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,30 +11,25 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install uv
uses: astral-sh/setup-uv@v3

- name: Python Poetry Action
uses: abatilo/actions-poetry@v2.3.0
with:
poetry-version: '1.5.1'
- name: Set up Python ${{ matrix.python-version }}
run: uv python install ${{ matrix.python-version }}

- name: Install dependencies
run: poetry install --all-extras
run: uv sync --all-extras

- uses: pre-commit/action@v3.0.0

- name: Test with pytest
run: |
poetry run pytest
uv run --extra tests pytest

- name: Test readme notebook
run: |
poetry install --with readme
poetry run jupyter nbconvert --to markdown README.ipynb
uv run --extra readme jupyter nbconvert --to markdown README.ipynb

- name: Test docs build
run: |
poetry run mkdocs build
uv run --extra docs mkdocs build
14 changes: 5 additions & 9 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,14 @@ jobs:
- name: Install compiler
run: sudo apt-get install build-essential

- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install uv
uses: astral-sh/setup-uv@v3

- name: Python Poetry Action
uses: abatilo/actions-poetry@v2.3.0
with:
poetry-version: '1.5.1'
- name: Set up Python 3.10
run: uv python install 3.10

- name: Export dependencies
run: poetry export --with docs --without-hashes --output requirements.txt
run: uv export --extra docs --no-hashes --output-file requirements.txt

- name: Deploy docs
uses: mhausenblas/mkdocs-deploy-gh-pages@master
Expand Down
Loading