Skip to content

Feature decouple somd 3 to main #183

Feature decouple somd 3 to main

Feature decouple somd 3 to main #183

Workflow file for this run

name: CI
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
on:
# GitHub has started calling new repo's first branch "main" https://github.com/github/renaming
# The cookiecutter uses the "--initial-branch" flag when it runs git-init
push:
branches:
- "main"
pull_request:
branches:
- "main"
schedule:
# Weekly tests run on main by default:
# Scheduled workflows run on the latest commit on the default or base branch.
# (from https://help.github.com/en/actions/reference/events-that-trigger-workflows#scheduled-events-schedule)
- cron: "0 0 * * 0"
jobs:
test:
name: Test on ${{ matrix.os }}, Python ${{ matrix.python-version }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
python-version: ['3.10', '3.11', '3.12']
container: condaforge/mambaforge:latest
steps:
- name: Check out code
uses: actions/[email protected]
- name: Install system dependencies
run: |
apt update && apt install -y git make
- name: Setup environment for Python ${{ matrix.python-version }}
run: |
make env-ci PYTHON_VERSION=${{ matrix.python-version }}
- name: Run linting and tests
run: |
make lint
make test
make docs
make clean
- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
with:
file: ./coverage.xml
token: ${{ secrets.CODECOV_TOKEN }}
slug: michellab/a3fe