5 pipeline with unit tests #10

Merged
julian merged 14 commits from 5-pipeline-with-unit-tests into master 2026-07-29 20:01:58 +02:00
2 changed files with 11 additions and 2 deletions
Showing only changes of commit 53a1eb6ca7 - Show all commits
+6
View File
@@ -18,4 +18,10 @@ FROM condaforge/miniforge3:latest
RUN mamba install -y -c conda-forge sage ruff pytest \ RUN mamba install -y -c conda-forge sage ruff pytest \
&& mamba clean -afy && mamba clean -afy
# actions/checkout@v4 (and other JS-based actions) run via `node` inside this
# container -- act_runner doesn't inject a runtime of its own when a custom
# `container:` image is set, so one has to be present here.
RUN mamba install -y -c conda-forge nodejs \
&& mamba clean -afy
WORKDIR /workspace WORKDIR /workspace
+5 -2
View File
@@ -29,7 +29,10 @@ jobs:
- name: ruff check - name: ruff check
# --no-respect-gitignore: *.sage.py is gitignored (it's generated, see # --no-respect-gitignore: *.sage.py is gitignored (it's generated, see
# the previous step) but that's exactly what we need to lint here. # the previous step) but that's exactly what we need to lint here.
run: sage --python -m ruff check --no-respect-gitignore . # `python` here is the conda env's own interpreter -- it already has
# sage/ruff/pytest importable, `sage --python` isn't a real flag on
# the conda-forge sage CLI.
run: python -m ruff check --no-respect-gitignore .
test: test:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@@ -42,4 +45,4 @@ jobs:
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Run tests - name: Run tests
run: sage --python -m pytest tests/ run: python -m pytest tests/