Various Updates #280
Workflow file for this run
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: build | |
on: | |
push: | |
branches: | |
- "**" | |
pull_request: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: ["windows-latest", "ubuntu-latest"] | |
python-version: ["3.8", "3.9", "3.10", "3.11"] | |
steps: | |
- name: Set up Git repository | |
uses: actions/checkout@v3 | |
with: | |
lfs: true | |
- name: Checkout LFS datafiles | |
run: git lfs checkout | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: conda-incubator/setup-miniconda@v3 | |
with: | |
activate-environment: dolfyn-dev | |
environment-file: environment.yml | |
python-version: ${{ matrix.python-version }} | |
auto-update-conda: true | |
auto-activate-base: true | |
- name: Update and install packages | |
shell: bash -l {0} | |
run: | | |
python -m pip install --upgrade pip wheel | |
pip install coveralls | |
- name: Run tests | |
shell: bash -l {0} | |
run: | | |
coverage run -m pytest | |
- name: Upload coverage data to coveralls.io | |
shell: bash -l {0} | |
run: | | |
coveralls --service=github | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
COVERALLS_FLAG_NAME: ${{ matrix.python-version }} | |
COVERALLS_PARALLEL: true | |
coveralls: | |
name: Indicate completion to coveralls.io | |
needs: build | |
runs-on: ubuntu-latest | |
container: python:3-slim | |
steps: | |
- name: Finished | |
shell: bash -l {0} | |
run: | | |
python -m pip install --upgrade coveralls | |
coveralls --finish | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |