Skip to content

Merge pull request #6 from biodigitalmatter/dependabot/github_actions… #135

Merge pull request #6 from biodigitalmatter/dependabot/github_actions…

Merge pull request #6 from biodigitalmatter/dependabot/github_actions… #135

Workflow file for this run

name: Test
on:
workflow_dispatch:
push:
branches:
- main
pull_request:
defaults:
run:
shell: pwsh
jobs:
test:
name: Test (${{ matrix.python-version }}, ${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- windows-latest
python-version: ["3.11", "3.12"]
steps:
- name: Checkout
uses: actions/checkout@v4
with:
lfs: false
- name: Cache conda
uses: actions/cache@v4
env:
# Increase this value to reset cache if environment.yml has not changed
CACHE_NUMBER: 0
with:
path: ~/conda_pkgs_dir
key:
${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-${{ hashFiles('environment.yml') }}
- uses: conda-incubator/setup-miniconda@d2e6a045a86077fb6cad6f5adf368e9076ddaa8d # v3.1.0
with:
miniforge-version: latest
python-version: ${{ matrix.python-version }}
environment-file: ./environment.yml
- name: install local package
run: invoke install
- name: check
run: invoke check
continue-on-error: true
- name: test
run: invoke test