Skip to content

Merge pull request #137 from simonsobs/dependabot/pip/ci/latest/starl… #232

Merge pull request #137 from simonsobs/dependabot/pip/ci/latest/starl…

Merge pull request #137 from simonsobs/dependabot/pip/ci/latest/starl… #232

name: Run unit tests with latest dependency versions
# This workflow runs the unit tests with the latest versions of the
# dependencies listed in `pyproject.toml`. The latest versions are specified in
# `ci/latest/requirements.txt`. The `requirements.txt` file is updated by
# Dependabot.
on:
push:
branches:
- main
pull_request:
branches:
- main
concurrency:
group: unit-test-latest-${{ github.head_ref }}
cancel-in-progress: true
env:
PYTHONUNBUFFERED: "1"
FORCE_COLOR: "1"
jobs:
run:
name: Python ${{ matrix.python-version }} on Linux
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install packages
run: |
pip install --upgrade pip
pip install -e '.[tests]'
pip install -r ci/latest/requirements.txt
pip list
- name: Run tests
run: pytest -vv --cov --cov-report=xml