ignore the plot test files in the main package job #436
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: conda-deployment | |
on: [push] | |
jobs: | |
Main-package: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
python-version: ["3.12"] | |
env: | |
OS: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: conda-incubator/setup-miniconda@v3 | |
with: | |
mamba-version: "*" | |
use-mamba: true | |
auto-update-conda: false | |
auto-activate-base: false | |
environment-file: environment.yml | |
activate-environment: test | |
python-version: ${{ matrix.python-version }} | |
channels: conda-forge | |
channel-priority: true | |
show-channel-urls: true | |
- name: Install dev-dependencies | |
run: | | |
pip install .[dev] | |
- name: Generate coverage report | |
shell: bash -el {0} | |
run: | | |
conda info | |
conda list | |
conda config --show-sources | |
conda config --show | |
pip install . | |
pytest -sv -m "not plot" --ignore-glob="*plot*.py" | |
Optional-packages: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
python-version: ["3.12"] | |
env: | |
OS: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: conda-incubator/setup-miniconda@v3 | |
with: | |
mamba-version: "*" | |
use-mamba: true | |
auto-update-conda: false | |
auto-activate-base: false | |
environment-file: environment-optional-packages.yml | |
activate-environment: test | |
python-version: ${{ matrix.python-version }} | |
channels: conda-forge | |
channel-priority: true | |
show-channel-urls: true | |
- name: Install dev-dependencies | |
run: | | |
pip install .[dev] | |
- name: Generate coverage report | |
shell: bash -el {0} | |
run: | | |
conda activate test | |
conda info | |
conda list | |
conda config --show-sources | |
conda config --show | |
pip install . | |
pytest -sv | |
- name: test Jupyter notebook | |
shell: bash -el {0} | |
run: | | |
conda activate test | |
pip install . | |
pytest --nbval -k ".ipynb" |