Skip to content

Update

Update #9

Workflow file for this run

name: Run Tests
on:
push: {}
pull_request:
branches: [ main ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Cache conda
uses: actions/cache@v4
env:
CACHE_NUMBER: 0
with:
path: ~/conda_pkgs_dir
key: ${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-${{ hashFiles('environment.yml') }}
- name: Setup Conda
uses: conda-incubator/setup-miniconda@v3
with:
auto-update-conda: true
environment-file: environment.yml
- name: Install Poetry
uses: abatilo/actions-poetry@v3
with:
poetry-version: ${{ vars.CI_POETRY_VERSION }}
- name: Install dependencies
shell: bash -l {0}
run: |
poetry env info
poetry install
pip list
- name: Run tests
shell: bash -l {0}
run: |
poetry run pytest -s