Skip to content

Implementing beam chromaticity #305

Implementing beam chromaticity

Implementing beam chromaticity #305

Workflow file for this run

name: Testing & coverage
on:
pull_request:
push:
branches: [master]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
python-version: ["3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Set gfortran link on macos-latest
if: matrix.os == 'macos-latest'
run: |
set -x
sudo ln -s /opt/homebrew/bin/gfortran-12 /usr/local/bin/gfortran
gfortran --version
- name: Install dependencies via pip
run: |
python -m pip install --upgrade pip
python -m pip install .[test]
- name: Unit tests
run: |
python -m pytest -vv mflike --cov=mflike --cov-report=xml:coverage.xml
- name: Report Coverage (codecov)
if: matrix.os == 'ubuntu-latest'
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}