Pass x0, bounds and n_parameters into Cost #450
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: test_on_push | |
on: | |
push: | |
workflow_dispatch: | |
pull_request: | |
concurrency: | |
# github.workflow: name of the workflow, so that we don't cancel other workflows | |
# github.event.pull_request.number || github.ref: pull request number or branch name if not a pull request | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
# Cancel in-progress runs when a new workflow with the same group name is triggered | |
# This avoids workflow runs on both pushes and PRs | |
cancel-in-progress: true | |
jobs: | |
style: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.11 | |
- name: Check formatting with pre-commit | |
run: | | |
python -m pip install pre-commit | |
pre-commit run ruff | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: ["3.8", "3.9", "3.10", "3.11"] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip nox | |
- name: Unit tests with nox | |
run: | | |
nox -s unit | |
# Runs only on Ubuntu with Python 3.11 | |
check_coverage: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
name: Coverage tests (ubuntu-latest / Python 3.11) | |
steps: | |
- name: Check out PyBOP repository | |
uses: actions/checkout@v4 | |
- name: Set up Python 3.11 | |
id: setup-python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.11 | |
cache: 'pip' | |
cache-dependency-path: setup.py | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip nox | |
- name: Run coverage tests for Ubuntu with Python 3.11 and generate report | |
run: nox -s coverage | |
- name: Upload coverage report | |
uses: codecov/codecov-action@v3 | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |