Edge flip #399
Workflow file for this run
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
name: Test | |
on: | |
push: { branches: [ "master" ] } | |
pull_request: { branches: [ "master" ] } | |
concurrency: | |
group: test-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
test: | |
runs-on: ubuntu-22.04 | |
strategy: | |
matrix: | |
include: | |
- optionals: "sage,pplpy" | |
sagelib: "9.3" | |
python: "3.9" | |
# Test SageMath 9.3 with all compiled optional dependencies that were | |
# packaged in conda-forge at the time (the others cannot be installed | |
# because of FLINT incompatibilities) | |
- optionals: "sage,pplpy,sage_flatsurf" | |
sagelib: "9.3" | |
python: "3.9" | |
- optionals: "sage,pplpy" | |
sagelib: "9.4" | |
python: "3.9" | |
- optionals: "sage,pplpy,gmpxxyy,pyeantic,pyintervalxt,sage_flatsurf" | |
sagelib: "9.4" | |
python: "3.9" | |
- optionals: "sage,pplpy" | |
sagelib: "9.5" | |
python: "3.9" | |
- optionals: "sage,pplpy,gmpxxyy,pyeantic,pyintervalxt,sage_flatsurf" | |
sagelib: "9.5" | |
python: "3.9" | |
- optionals: "sage,pplpy" | |
sagelib: "9.6" | |
python: "3.10" | |
- optionals: "sage,pplpy,gmpxxyy,pyeantic,pyintervalxt,sage_flatsurf" | |
sagelib: "9.6" | |
python: "3.10" | |
- optionals: "sage,pplpy" | |
sagelib: "9.7" | |
python: "3.10" | |
- optionals: "sage,pplpy,gmpxxyy,pyeantic,pyintervalxt,sage_flatsurf" | |
sagelib: "9.7" | |
python: "3.10" | |
- optionals: "sage,pplpy" | |
sagelib: "9.8" | |
python: "3.10" | |
- optionals: "sage,pplpy,gmpxxyy,pyeantic,pyintervalxt,sage_flatsurf" | |
sagelib: "9.8" | |
python: "3.10" | |
- optionals: "sage,pplpy" | |
sagelib: "10.0" | |
python: "3.10" | |
- optionals: "sage,pplpy,gmpxxyy,pyeantic,pyintervalxt,sage_flatsurf" | |
sagelib: "10.0" | |
python: "3.10" | |
- optionals: "sage,pplpy" | |
sagelib: "10.1" | |
python: "3.10" | |
- optionals: "sage,pplpy,gmpxxyy,pyeantic,pyintervalxt,sage_flatsurf" | |
sagelib: "10.1" | |
python: "3.10" | |
- optionals: "sage,pplpy" | |
sagelib: "10.2" | |
python: "3.10" | |
- optionals: "sage,pplpy,gmpxxyy,pyeantic,pyintervalxt,sage_flatsurf" | |
sagelib: "10.2" | |
python: "3.10" | |
- optionals: "sage,pplpy" | |
sagelib: "10.3" | |
python: "3.10" | |
- optionals: "sage,pplpy,gmpxxyy,pyeantic,pyintervalxt,sage_flatsurf" | |
sagelib: "10.3" | |
python: "3.10" | |
steps: | |
- uses: actions/checkout@v2 | |
with: { submodules: recursive } | |
- uses: conda-incubator/setup-miniconda@v2 | |
with: { miniforge-variant: "Mambaforge", miniforge-version: "latest", python-version: "${{ matrix.python }}" } | |
- name: Install dependencies | |
shell: bash -l {0} | |
run: | | |
mamba install -n test sagelib=${{ matrix.sagelib }} | |
echo "sagelib ==${{ matrix.sagelib }}" >> $CONDA_PREFIX/conda-meta/pinned | |
while read; do | |
optional=$(echo "$REPLY" | grep -o '# optional: [^ ]*' | awk '{ print $3; }') || true | |
(test "$optional" == '' || (echo "${{ matrix.optionals }}" | grep -E '\b'"$optional"'\b') > /dev/null) && echo "$REPLY" || true | |
done < environment.yml > environment.test.yml | |
echo "Installing the following test environment" | |
cat environment.test.yml | |
mamba env update --quiet -n test -f environment.test.yml | |
conda list | |
- name: Install surface-dynamics | |
shell: bash -l {0} | |
run: | | |
pip install --verbose --no-index . | |
# Show message about cppyy regenerating pre-compiled headers so it does not show during the tests | |
python -c 'import cppyy' || true | |
- name: Run SageMath doctests | |
shell: bash -l {0} | |
run: | | |
PYTHONPATH=`pwd`/.github/workflows/disable-pytest sage -tp --force-lib --long --optional=${{ matrix.optionals }} surface_dynamics doc | |
- name: Run pytest | |
shell: bash -l {0} | |
working-directory: tests | |
run: pytest -n auto | |
- name: Show logs | |
run: grep "" /dev/null `find -name '*.log'` || true | |
if: ${{ always() }} | |
env: | |
MAKEFLAGS: -j4 | |
SAGE_NUM_THREADS: 4 |