Parameter Optimization #54
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
# This uses actios: | |
# checkout: https://github.com/actions/checkout | |
# cache: https://github.com/actions/cache | |
# codecov-action: https://github.com/codecov/codecov-action | |
name: CI | |
on: | |
push: | |
branches: | |
- "*" | |
pull_request: | |
branches: | |
- "*" | |
jobs: | |
build: | |
name: Build (${{ matrix.python-version }} | ${{ matrix.os }}) | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: ["ubuntu-latest"] | |
python-version: ["3.9", "3.10", "3.11"] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Cache conda | |
uses: actions/cache@v2 | |
env: | |
# Increase this value to reset cache if ci/environment.yaml has not changed | |
CACHE_NUMBER: 0 | |
with: | |
path: ~/conda_pkgs_dir | |
key: ${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-${{ hashFiles('ci/environment.yaml') }} | |
- uses: conda-incubator/setup-miniconda@v2 | |
with: | |
activate-environment: xesn # Defined in ci/environment*.yml | |
auto-update-conda: false | |
python-version: ${{ matrix.python-version }} | |
environment-file: ci/environment.yaml | |
use-only-tar-bz2: true # IMPORTANT: This needs to be set for caching to work properly! | |
- name: Run Unit Tests | |
shell: bash -l {0} | |
run: | | |
coverage run --rcfile=coverage.toml -m pytest --verbose xesn/test/matrix.py xesn/test/esn.py xesn/test/lazy.py xesn/test/xdata.py xesn/test/optim.py xesn/test/driver.py xesn/test/cost.py | |
- name: Show coverage report | |
shell: bash -l {0} | |
run: | | |
coverage report -m |