-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* use uv, update a few posts * add tmate debugging
- Loading branch information
Showing
13 changed files
with
2,019 additions
and
643 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,11 @@ | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
debug_enabled: | ||
type: boolean | ||
description: 'Run the build with tmate debugging enabled (https://github.com/marketplace/actions/debugging-with-tmate)' | ||
required: false | ||
default: false | ||
pull_request: | ||
branches: main | ||
push: | ||
|
@@ -14,29 +20,27 @@ jobs: | |
cancel-in-progress: true | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Quarto | ||
uses: quarto-dev/quarto-actions/setup@v2 | ||
with: | ||
tinytex: true | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.x' # Version range or exact version of a Python version to use, using SemVer's version range syntax | ||
cache: 'pip' | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set up docker | ||
uses: docker-practice/[email protected] | ||
timeout-minutes: 12 | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
|
||
- name: Install system dependencies | ||
run: sudo apt update && sudo apt install ghostscript python3-tk | ||
|
||
- name: Install uv | ||
uses: astral-sh/setup-uv@v3 | ||
|
||
- name: Install Python packages | ||
run: pip install -r requirements.txt | ||
- name: Set up Python | ||
run: uv python install | ||
|
||
- name: Install the project | ||
run: uv sync --all-extras --dev | ||
|
||
- name: Set up Quarto | ||
uses: quarto-dev/quarto-actions/setup@v2 | ||
with: | ||
tinytex: true | ||
|
||
- name: Make .netrc | ||
env: | ||
|
@@ -55,12 +59,17 @@ jobs: | |
GDAL_DISABLE_READDIR_ON_OPEN: YES | ||
GDAL_HTTP_COOKIEJAR: /tmp/cookies.txt | ||
GDAL_HTTP_COOKIEFILE: /tmp/cookies.txt | ||
uses: quarto-dev/quarto-actions/render@v2 | ||
run: | | ||
uv run quarto render | ||
- name: Publish | ||
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} | ||
uses: quarto-dev/quarto-actions/publish@v2 | ||
with: | ||
target: netlify | ||
render: "false" | ||
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} | ||
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} | ||
|
||
- name: Setup tmate session | ||
if: ${{ failure() && github.event_name == 'workflow_dispatch' && inputs.debug_enabled }} | ||
uses: mxschmitt/action-tmate@v3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,5 @@ | |
/env/ | ||
**/.jupyter_cache/** | ||
/hidden* | ||
**/.ipynb_checkpoints/** | ||
hrodmn.dev.egg-info/ |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.