Merge branch '5-pipeline-with-unit-tests' of https://gitea.piribauer.ch/julian/Calabi-Yau-Period-Geometry into 5-pipeline-with-unit-tests
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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/
|
||||||
|
|||||||
Reference in New Issue
Block a user