Skip to content

Commit

Permalink
Merge branch 'main' of github.com:MREYE-LUMC/visisipy
Browse files Browse the repository at this point in the history
  • Loading branch information
crnh committed Jul 17, 2024
2 parents 874acba + 868d342 commit 7bc5c72
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: "CI"

on:
push:
pull_request:

jobs:
format:
name: "Format and lint"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
- name: Install hatch
run: |
pipx install hatch
- name: Format and lint
run: hatch fmt --check

test:
name: "Test"
runs-on: windows-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
pip install --editable .
pip install pytest
- name: Run tests
run: pytest ./tests --no-opticstudio

0 comments on commit 7bc5c72

Please sign in to comment.