Skip to content

Commit

Permalink
Update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
goanpeca committed Nov 30, 2022
1 parent a72bb8e commit 778fdf9
Showing 1 changed file with 26 additions and 11 deletions.
37 changes: 26 additions & 11 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ jobs:
test:
name: ${{ matrix.platform }} py${{ matrix.python-version }}
runs-on: ${{ matrix.platform }}
defaults:
run:
shell: bash -el {0}
strategy:
matrix:
platform: [ubuntu-latest, windows-latest, macos-latest]
Expand All @@ -25,21 +28,33 @@ jobs:
- uses: actions/checkout@v3

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: conda-incubator/setup-miniconda@v2
with:
python-version: ${{ matrix.python-version }}
activate-environment: ""
auto-activate-base: true

- name: Install dependencies cli
- name: Install dependencies on 'base'
run: |
conda install conda-lock mamba packaging requests pyyaml -c conda-forge -y
conda install pytest pytest-cov -c conda-forge -y
cd constructor-manager-cli
python -m pip install --upgrade pip
python -m pip install setuptools tox tox-gh-actions
pip list
pip install -e . --no-deps
# this runs the platform-specific tests declared in tox.ini
- name: Test with tox
- name: Run tests on 'base'
run: |
cd constructor-manager-cli
python -m tox
env:
PLATFORM: ${{ matrix.platform }}
cd src/constructor_manager_cli
pytest constructor_manager_cli --cov=constructor_manager_cli --cov-report term-missing
- name: Install dependencies on 'napari-0.4.15'
run: |
conda create -n napari-0.4.15 napari=0.4.5=*pyside* -c conda-forge -y
conda install -n napari-0.4.15 pytest pytest-cov -c conda-forge -y
conda activate napari-0.4.15
cd constructor-manager
pip install -e . --no-deps
- name: Run tests on 'napari-0.4.15'
run: |
conda activate napari-0.4.15
cd src/constructor_manager
pytest constructor_manager --cov=constructor_manager --cov-report term-missing

0 comments on commit 778fdf9

Please sign in to comment.