Skip to content
Closed
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
10 changes: 5 additions & 5 deletions .github/workflows/app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- uses: actions/checkout@v7
- uses: actions/setup-node@v7
with: { node-version: 22, cache: npm }
- uses: actions/setup-python@v5
- uses: actions/setup-python@v7
with: { python-version: "3.12" }
- run: npm ci
- run: npm run typecheck -w app
Expand All @@ -24,10 +24,10 @@ jobs:
working-directory: app
- run: npx playwright test
working-directory: app
- uses: actions/upload-artifact@v4
- uses: actions/upload-artifact@v7
if: failure()
with: { name: playwright-report, path: app/playwright-report, if-no-files-found: ignore }
- name: Wheel with the viewer inside (downloadable from this run)
run: python/.venv/bin/pip install build && python/.venv/bin/python -m build python --wheel --outdir dist
- uses: actions/upload-artifact@v4
- uses: actions/upload-artifact@v7
with: { name: spatialscape-wheel, path: dist/*.whl }
10 changes: 5 additions & 5 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- uses: actions/checkout@v7
- uses: actions/setup-node@v7
with: { node-version: 22, cache: npm }
- uses: actions/setup-python@v5
- uses: actions/setup-python@v7
with: { python-version: "3.12" }
- run: npm ci
- run: npm test
Expand All @@ -24,12 +24,12 @@ jobs:
- run: npm run build
- run: npm run docs:build && mkdir -p /tmp/site/docs && cp -r docs/.vitepress/dist/* /tmp/site/docs/
- run: cp -r app/dist/* /tmp/site/
- uses: actions/upload-pages-artifact@v3
- uses: actions/upload-pages-artifact@v5
with: { path: /tmp/site }
deploy:
needs: build
runs-on: ubuntu-latest
environment: { name: github-pages, url: "${{ steps.deployment.outputs.page_url }}" }
steps:
- id: deployment
uses: actions/deploy-pages@v4
uses: actions/deploy-pages@v5
4 changes: 2 additions & 2 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ jobs:
matrix:
python: ["3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- uses: actions/checkout@v7
- uses: actions/setup-python@v7
with: { python-version: "${{ matrix.python }}" }
- run: pip install -e "python[dev,tracks]"
- run: ruff check python
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ jobs:
runs-on: ubuntu-latest
environment: pypi
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- uses: actions/checkout@v7
- uses: actions/setup-node@v7
with: { node-version: 22, cache: npm }
- uses: actions/setup-python@v5
- uses: actions/setup-python@v7
with: { python-version: "3.12" }
- name: Tests first; a tag must not publish what the test workflows would reject
run: pip install -e "python[dev,tracks]" && ruff check python && pytest -q python/tests && npm ci && npm test --workspace app
Expand All @@ -22,5 +22,5 @@ jobs:
run: python -c "import zipfile,glob; w=zipfile.ZipFile(glob.glob('dist/*.whl')[0]); assert any(n.endswith('_app/index.html') for n in w.namelist()), 'viewer missing from wheel'"
- name: Publish to PyPI (trusted publishing; configure the publisher at pypi.org for mictott/spatialscape, workflow release.yml, environment pypi)
uses: pypa/gh-action-pypi-publish@release/v1
- uses: softprops/action-gh-release@v2
- uses: softprops/action-gh-release@v3
with: { files: dist/*, generate_release_notes: true }
Loading