add stellar polarized flux calculations to header of stokes files #273
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
name: CI tests | |
on: | |
push: | |
branches: [main] | |
tags: ["*"] | |
pull_request: | |
branches: [main] | |
concurrency: | |
# Skip intermediate builds: always. | |
group: ${{ github.workflow }}-${{ github.ref }} | |
jobs: | |
test: | |
name: Python ${{ matrix.version }} - ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
version: ["3.10", "3.11"] | |
os: | |
- ubuntu-latest | |
- macOS-latest | |
- windows-latest | |
arch: ["x64"] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup python ${{ matrix.version }} | |
uses: actions/setup-python@v1 | |
with: | |
python-version: ${{ matrix.version }} | |
architecture: ${{ matrix.arch }} | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install --use-deprecated=legacy-resolver -e .[test] | |
- name: Run pytest | |
run: pytest --cov --cov-report xml --black | |
- name: Upload coverage to codecov | |
uses: codecov/codecov-action@v2 | |
with: | |
fail_ci_if_error: true |