Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test with more version of sagelib #84

Closed
wants to merge 4 commits into from
Closed
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
62 changes: 54 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,38 +15,90 @@ jobs:
include:
- optionals: "sage,pplpy"
sagelib: "9.3"
python: "3.9.15"
# 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.15"
- optionals: "sage,pplpy"
sagelib: "9.4"
python: "3.9.15"
- optionals: "sage,pplpy,gmpxxyy,pyeantic,pyintervalxt,sage_flatsurf"
sagelib: "9.4"
python: "3.9.15"
- optionals: "sage,pplpy"
sagelib: "9.5"
python: "3.9.15"
- optionals: "sage,pplpy,gmpxxyy,pyeantic,pyintervalxt,sage_flatsurf"
sagelib: "9.5"
python: "3.9.15"
- optionals: "sage,pplpy"
sagelib: "9.6"
python: "3.10.8"
- optionals: "sage,pplpy,gmpxxyy,pyeantic,pyintervalxt,sage_flatsurf"
sagelib: "9.6"
python: "3.10.8"
- optionals: "sage,pplpy"
sagelib: "9.7"
python: "3.10.8"
- optionals: "sage,pplpy,gmpxxyy,pyeantic,pyintervalxt,sage_flatsurf"
sagelib: "9.7"
python: "3.10.8"
- optionals: "sage,pplpy"
sagelib: "9.8"
python: "3.11.8"
- optionals: "sage,pplpy,gmpxxyy,pyeantic,pyintervalxt,sage_flatsurf"
sagelib: "9.8"
python: "3.11.8"
- optionals: "sage,pplpy"
sagelib: "10.0"
python: "3.11.8"
- optionals: "sage,pplpy,gmpxxyy,pyeantic,pyintervalxt,sage_flatsurf"
sagelib: "10.0"
python: "3.11.8"
- optionals: "sage,pplpy"
sagelib: "10.1"
python: "3.11.8"
- optionals: "sage,pplpy,gmpxxyy,pyeantic,pyintervalxt,sage_flatsurf"
sagelib: "10.1"
python: "3.11.8"
- optionals: "sage,pplpy"
sagelib: "10.2"
python: "3.11.8"
- optionals: "sage,pplpy,gmpxxyy,pyeantic,pyintervalxt,sage_flatsurf"
sagelib: "10.2"
python: "3.11.8"
steps:
- uses: actions/checkout@v2
with: { submodules: recursive }
- uses: conda-incubator/setup-miniconda@v2
with: { miniforge-variant: "Mambaforge", miniforge-version: "latest" }
- name: Install dependencies
with: { miniforge-variant: "Mambaforge", miniforge-version: "latest", python-version: "${{ matrix.python }}" }
- name: Install minimal dependencies
shell: bash -l {0}
run: |
mamba install -n test sagelib=${{ matrix.sagelib }}
echo "sagelib ==${{ matrix.sagelib }}" >> $CONDA_PREFIX/conda-meta/pinned

grep -v optional environment.yml > environment.build.yml

echo "Installing the following build environment"
cat environment.build.yml

mamba env update --quiet -n test -f environment.build.yml

conda list
- name: Install surface-dynamics
shell: bash -l {0}
run: |
pip install --verbose --no-index --no-deps .

# Show message about cppyy regenerating pre-compiled headers so it does not show during the tests
python -c 'import cppyy' || true
- name: Install dependencies
shell: bash -l {0}
run: |
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
Expand All @@ -58,12 +110,6 @@ jobs:
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: |
Expand Down
Loading