test 467 #638
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
# Run minimum dependency tests without conda | |
name: TestCodeMinDeps | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
paths: | |
- 'pyproject.toml' | |
- '**.py' | |
- '.github/workflows/run_min_dep_tests.yml' | |
# Cancel previous runs when this one starts. | |
concurrency: | |
group: TestCodeMinDeps-${{ github.event.pull_request.number || github.run_id }} | |
cancel-in-progress: true | |
jobs: | |
# Runs the tests on combinations of the supported python/os matrix. | |
test_code_min_deps: | |
timeout-minutes: 25 | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
python-version: ['3.12', '3.13'] | |
# only run if CI isn't turned off | |
if: github.event_name == 'push' || !contains(github.event.pull_request.labels.*.name, 'no_ci') | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-tags: 'true' | |
- uses: ./.github/actions/mamba-install-dascore | |
with: | |
python-version: ${{ matrix.python-version }} | |
install-package: false | |
environment-file: './.github/min_deps_environment.yml' | |
# Then switch over to uv. We can use this exclusively once we drop pytables. | |
- name: Install uv | |
uses: astral-sh/setup-uv@v3 | |
- name: run test suite | |
shell: bash -l {0} | |
run: uv run --extra test --python ${{ matrix.python-version }} pytest -s --cov dascore --cov-append --cov-report=xml | |
# Runs examples in docstrings | |
- name: test docstrings | |
shell: bash -l {0} | |
run: uv run --extra test --python ${{ matrix.python-version }} pytest dascore --doctest-modules |