Fixed bug in lifting precision #22
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-20.04 | |
strategy: | |
matrix: | |
include: | |
- optionals: "sage" | |
sagelib: "9.8" | |
environment: "environment.yml" | |
- optionals: "sage" | |
sagelib: "9.7" | |
environment: "environment.yml" | |
- optionals: "sage" | |
sagelib: "9.6" | |
environment: "environment.yml" | |
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 | |
mamba env update -n test --quiet -f environment.test.yml | |
conda list | |
if: ${{ matrix.environment == 'environment.yml' }} | |
- name: Install darmonpoints | |
shell: bash -l {0} | |
run: | | |
pip install --verbose --no-index . | |
- name: Run SageMath doctests | |
shell: bash -l {0} | |
run: | | |
export PYTHONPATH=test/disable-pytest:$PYTHONPATH | |
sage -tp --force-lib --long --optional=${{ matrix.optionals }} darmonpoints | |
- name: Run pytest | |
shell: bash -l {0} | |
run: pytest -n auto | |
if: ${{ matrix.environment == 'environment.yml' }} | |
env: | |
MAKEFLAGS: -j2 | |
SAGE_NUM_THREADS: 2 |