Skip to content

Test all Python versions >= 3.9 #89

Test all Python versions >= 3.9

Test all Python versions >= 3.9 #89

Workflow file for this run

name: pytest
on:
push:
branches:
- main
pull_request: {}
jobs:
tests:
# See https://stackoverflow.com/questions/72703363/how-to-activate-conda-environment-in-github-actions
defaults:
run:
shell: bash -l {0}
name: python-matrix
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v4
- uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: ftw
environment-file: env.yml
auto-activate-base: false
- name: Install Python version ${{ matrix.python-version }}
run: conda install python=${{ matrix.python-version }}
- name: Install Python dependencies
run: pip install -e .[dev]
- name: Download model
run: wget https://github.com/fieldsoftheworld/ftw-baselines/releases/download/v1/3_Class_FULL_FTW_Pretrained.ckpt
- name: Execute help tests
run: pytest src/tests/test_help.py
- name: Execute data tests
run: pytest src/tests/test_data.py
- name: Execute model tests
run: pytest src/tests/test_model.py
- name: Execute inference tests
run: pytest src/tests/test_inference.py