Skip to content

set version dynamically in pyproject.toml #97

set version dynamically in pyproject.toml

set version dynamically in pyproject.toml #97

name: Run tests
on: [pull_request]
jobs:
test:
name: ${{ matrix.platform }} py${{ matrix.python-version }}
runs-on: ${{ matrix.platform }}
strategy:
matrix:
platform: [ubuntu-latest, windows-latest, macos-latest]
python-version: ['3.9', '3.10', '3.11']
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Setup yt_xarray
run: |
python -m pip install --upgrade pip
python -m pip install -e .[full,test]
- name: Run Tests
run: pytest --cov=./ --cov-report=html
- name: Upload coverage report
if: (matrix.platform == 'ubuntu-latest' && matrix.python-version == '3.11')
uses: actions/upload-artifact@v4
with:
name: coverage-report
path: htmlcov/*