Skip to content

Merge pull request #210 from DunklesArchipel/adopt-to-schema #1138

Merge pull request #210 from DunklesArchipel/adopt-to-schema

Merge pull request #210 from DunklesArchipel/adopt-to-schema #1138

Workflow file for this run

name: Test
on:
push: { branches: [ "main" ] }
pull_request: { branches: [ "main" ] }
concurrency:
group: test-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.remote-data == 'remote' }}
strategy:
matrix:
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
python: ["3.9", "3.10"]
remote-data: [""]
include:
- os: "ubuntu-latest"
python: "3.10"
# This leg of the tests runs doctests against the data that is
# currently in the echemdb repository. This test might fail when
# substantial changes have been introduced with this run that have
# not been published in the echemdb repository yet.
remote-data: 'remote'
steps:
- uses: actions/checkout@v2
with: { submodules: recursive }
- uses: conda-incubator/setup-miniconda@v2
with: { miniforge-variant: "Mambaforge", python-version: "${{ matrix.python }}" }
- name: install dependencies
shell: bash -l {0}
run: |
mamba env update --quiet -n test -f environment.yml
conda list
- name: install echemdb-website
shell: bash -l {0}
run: |
pip install -e .
- name: doctest
shell: bash -l {0}
run: |
pytest -n auto --doctest-plus ${{ matrix.remote-data == 'remote' && '--remote-data' || '' }} --doctest-modules website