Skip to content

added style tests

added style tests #2

Workflow file for this run

name: pybamm_cookiecutter

Check failure on line 1 in .github/workflows/test_on_push.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/test_on_push.yml

Invalid workflow file

No steps defined in `steps` and no workflow called in `uses` for the following jobs: run_tests
on:
workflow_dispatch:
pull_request:
jobs:
style:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: 3.12
- name: Check style
run: |
python -m pip install pre-commit
pre-commit run -a
run_tests:
needs: style
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-12, macos-14, windows-latest]
python-version: ["3.9", "3.10", "3.11", "3.12"]
name: Tests (${{ matrix.os }}) / Python ${{ matrix.python-version }}
steps:
- name: Check out pybamm_cookiecutter
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
id: setup-python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Install nox
run: python -m pip install nox
- name: Run tests
run: pytest tests