Skip to content

Forgot nox in ci tests and had linting issues #57

Forgot nox in ci tests and had linting issues

Forgot nox in ci tests and had linting issues #57

Workflow file for this run

name: build-and-test
on:
push:
paths-ignore:
- "*.md"
- "docs/**"
- "images/**"
- "LICENSE"
- "SUNDIALS_LICENSE"
- ".github/ISSUE_TEMPLATE/**"
pull_request:
branches: [main]
paths-ignore:
- "*.md"
- "docs/**"
- "images/**"
- "LICENSE"
- "SUNDIALS_LICENSE"
- ".github/ISSUE_TEMPLATE/**"
jobs:
lint:
name: (Lint ${{ matrix.python-version }}, ${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
python-version: ["3.13"]
defaults:
run:
shell: bash -l {0}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install nox
run: pip install nox
- name: Code format
run: nox -s linter
- name: Spell check
run: nox -s codespell
test:
name: (Test ${{ matrix.python-version }}, ${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [macos-13, macos-latest, windows-latest, ubuntu-latest]
python-version: ["3.9", "3.13"]
defaults:
run:
shell: bash -l {0}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Python and SUNDIALS
uses: mamba-org/setup-micromamba@v2
with: # ci_environment.yml specifies sundials version to compile
environment-file: environments/ci_environment.yml
create-args: python=${{ matrix.python-version }}
- name: Verify environment
run: |
micromamba info
micromamba list
- name: Install scikit-sundae
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade nox
pip install .[tests]
- name: List info
run: |
micromamba info
micromamba list
- name: Pytest
run: nox -s tests -- no-reports