Skip to content

Adapt to FLINT 3

Adapt to FLINT 3 #308

Workflow file for this run

name: Publish to Anaconda
on:
push: { tags: [ "*" ] }
pull_request: { branches: [ "master" ] }
concurrency:
group: conda-${{ github.ref }}
cancel-in-progress: true
jobs:
conda-build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- run: docker pull condaforge/linux-anvil-comp7
- uses: flatsurf/actions/conda-forge-build@main
with:
recipe: libexactreal/recipe
channels: flatsurf
- uses: flatsurf/actions/conda-forge-build@main
with:
recipe: pyexactreal/recipe
channels: flatsurf
- uses: actions/upload-artifact@v2
with:
name: conda-packages
path: conda-build/
- uses: flatsurf/actions/anaconda-upload@main
with:
user: flatsurf
token: ${{ secrets.BINSTAR_TOKEN }}
binder:
runs-on: ubuntu-20.04
needs: conda-build
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- uses: conda-incubator/setup-miniconda@v2
with: { miniforge-variant: "Mambaforge", miniforge-version: "latest", python-version: "3.7" }
- uses: actions/download-artifact@v2
with:
name: conda-packages
- name: Create binder environment
shell: bash -l {0}
run: |
wget -O repo2docker.yml https://github.com/jupyterhub/repo2docker/raw/main/repo2docker/buildpacks/conda/environment.yml
mamba install -n test --quiet -y pytest pytest-xdist byexample
mamba env update -n test --quiet -f repo2docker.yml
mamba env update -n test --quiet -f binder/environment.yml
conda list
mamba install --use-local -y libexactreal pyexactreal
conda list
- name: Run all example notebooks
shell: bash -l {0}
run: |
for notebook in `find -name '*.ipynb'`; do
jupyter nbconvert --execute --to notebook --inplace "$notebook"
done