Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/requirements.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
dependencies:
- flake8
- pytest
42 changes: 42 additions & 0 deletions .github/workflows/push_pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Run code tests on push and pull requests
on:
push:
pull_request:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

jobs:
tests:
name: Code tests (Python ${{ matrix.python-version }}, ${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: ["ubuntu-latest"]
python-version: ["3.8", "3.9", "3.10", "3.11"]

steps:
- uses: actions/checkout@v4
with:
submodules: true
lfs: true
- uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
python-version: ${{ matrix.python-version }}
activate-environment: test
environment-file: .github/requirements.yml
auto-activate-base: false
channels: conda-forge
- shell: bash -l {0}
run: |
conda info
conda list
# - name: Lint
# shell: bash -l {0}
# run: |
# python -m flake8 pypulseq
- name: Run pytest
shell: bash -l {0}
run: |
pip install .
pytest pypulseq/tests