Skip to content

Commit

Permalink
fix: typo in workflow.yml.
Browse files Browse the repository at this point in the history
  • Loading branch information
lang-m committed Oct 6, 2023
1 parent 426e33f commit 11e1ac0
Showing 1 changed file with 56 additions and 0 deletions.
56 changes: 56 additions & 0 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: workflow

on:
push:
branches:
- master
pull_request:
schedule:
- cron: '0 0 * * 1' # run every Monday
workflow_dispatch:

env:
PYTEST_ADDOPTS: "--color=yes"

jobs:
workflow:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.8", "3.10"]
defaults:
run:
shell: bash -l {0}

steps:
- name: Initialisation
uses: actions/checkout@v4

- name: Set up conda
uses: conda-incubator/setup-miniconda@v2
with:
python-version: ${{ matrix.python-version }}
auto-update-conda: true
activate-environment: conda-environment
environment-file: .github/environment.yml

- name: Install package
run: python -m pip install .[dev]

- name: Unit tests
run: invoke test.unittest

- name: Unit tests with coverage
run: invoke test.coverage
if: matrix.os == 'ubuntu-latest'

- name: Documentation tests
run: invoke test.docs

- name: Jupyter notebook tests
run: invoke test.ipynb

- name: Upload coverage to Codecov.io
uses: codecov/codecov-action@v1
if: matrix.os == 'ubuntu-latest'

0 comments on commit 11e1ac0

Please sign in to comment.