Skip to content

only run relevant tests #547

only run relevant tests

only run relevant tests #547

Workflow file for this run

name: testing
on:
push:
pull_request:
# weekly
schedule:
- cron: '3 7 * * 4'
jobs:
testing:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ['3.9', '3.10', '3.11', '3.12']
# exclude:
# - os: windows-latest
# python-version: '3.9'
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 python dependencies
run: |
python -m pip install uv
uv pip install --system .
# uv pip install --system numpy wheel setuptools
- name: Test with pytest
run: |
uv pip install --system pytest-cov pytest-rerunfailures
pytest --cov-report= --cov=rayflare tests/test_nan_error.py
- name: Codecov
if: matrix.os == 'ubuntu-latest'
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
run: |
uv pip install --system codecov
codecov