Skip to content

Commit

Permalink
Add optional testing requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
ronald-jaepel committed Mar 22, 2024
1 parent 0413610 commit 0bfcc24
Showing 1 changed file with 6 additions and 22 deletions.
28 changes: 6 additions & 22 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,40 +16,24 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Get Date
id: get-date
run: echo "today=$(/bin/date -u '+%Y%m%d')" >> $GITHUB_OUTPUT
shell: bash

- name: Setup Conda Environment
uses: conda-incubator/setup-miniconda@v3
with:
miniforge-variant: Mambaforge
use-mamba: true
activate-environment: cadet-process
channels: conda-forge,

- name: Cache conda
uses: actions/cache@v3
env:
# Increase this value to reset cache if environment.yml has not changed
CACHE_NUMBER: 0
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
path: ${{ env.CONDA }}/envs
key: python_${{ matrix.python-version }}-${{ steps.get-date.outputs.today }}-${{ env.CACHE_NUMBER }}
python-version: ${{ matrix.python-version }}

- name: Test Wheel install and import
run: |
pip install wheel
which pip
which conda
python setup.py bdist_wheel
cd dist
pip install CADET_Python*.whl
python -c "import cadet; print(cadet.__version__)"
- name: Test with pytest
run: |
pip install .[testing]
mamba install cadet
conda install cadet
which cadet-cli
mamba list
conda list
pytest tests --rootdir=tests -m "not slow"

0 comments on commit 0bfcc24

Please sign in to comment.