Bump pdoc from 13.1.1 to 14.5.1 #30
Workflow file for this run
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: Tests | |
on: | |
push: | |
branches-ignore: | |
- main # Ignore main branch, deploy workflow will call it | |
pull_request: | |
workflow_call: | |
jobs: | |
test: | |
name: Run Tests on Python ${{ matrix.python-version }} (${{ matrix.os }}) | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest] | |
python-version: ["3.9"] | |
runs-on: ${{ matrix.os }} | |
defaults: | |
run: | |
shell: bash -l {0} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
# - name: Cache conda | |
# uses: actions/cache@v3 | |
# env: | |
# # Increase this value to reset cache if etc/example-environment.yml has not changed | |
# CACHE_NUMBER: 0 | |
# with: | |
# path: ~/conda_pkgs_dir | |
# key: | |
# ${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-${{ | |
# hashFiles('etc/example-environment.yml') }} | |
- name: Setup Conda | |
uses: conda-incubator/setup-miniconda@v3 | |
with: | |
activate-environment: age-prediction | |
environment-file: environment.yml | |
python-version: ${{ matrix.python-version }} | |
auto-activate-base: false | |
use-only-tar-bz2: true | |
- run: | | |
conda info | |
conda list | |
- name: poetry info | |
run: poetry env info | |
- name: Install packages | |
run: | | |
conda activate age-prediction | |
poetry install | |
- name: Run tests | |
run: | | |
conda activate age-prediction | |
poetry run pytest |