Skip to content

Refactor and enhance vector impulse simulation #12

Refactor and enhance vector impulse simulation

Refactor and enhance vector impulse simulation #12

Workflow file for this run

name: CI
on:
push:
branches: [ main, master ]
pull_request:
branches: [ main, master ]
jobs:
tests:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Cache pip
uses: actions/cache@v4
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements-test.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements-test.txt ]; then
pip install -r requirements-test.txt
else
pip install numpy scipy matplotlib pytest pytest-asyncio cma
fi
- name: Run tests (focused)
run: |
pytest -q -k "vnv or power_profile or field_and_plasma or coil_driver"