Skip to content

Merge pull request #213 from astro-informatics/mmg/update-codecov-action #582

Merge pull request #213 from astro-informatics/mmg/update-codecov-action

Merge pull request #213 from astro-informatics/mmg/update-codecov-action #582

Workflow file for this run

name: Tests
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.9]
steps:
- name: Checkout Source
uses: actions/checkout@v2.3.1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install .[tests]
- name: Run tests
run: |
pytest --cov-report=xml --cov=s2fft --cov-config=.coveragerc
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}