Skip to content

Commit

Permalink
chore: Update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
saattrupdan committed Mar 26, 2024
1 parent 8d1bc16 commit d91b6d0
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,31 @@ name: CI

on:
pull_request:
types:
- opened
- synchronize
- reopened
- ready_for_review
branches:
- main

jobs:

lint:
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: jpetrucciani/black-check@master
- uses: jpetrucciani/ruff-check@main

pytest:
pytest-linux:
if: github.event.pull_request.draft == false
strategy:
matrix:
os: [ubuntu-latest]
python-version: ["3.9", "3.10", "3.11", "3.12"]
runs-on: ${{ matrix.os }}

runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Install Poetry
run: pipx install poetry
Expand All @@ -31,13 +37,10 @@ jobs:
python-version: ${{ matrix.python-version }}
cache: "poetry"

- name: Install HDF5
run: sudo apt install --fix-missing libhdf5-serial-dev

- name: Install Dependencies
run: |
poetry env use "${{ matrix.python-version }}"
poetry install
poetry install --extras all
- name: Test with pytest
run: poetry run pytest --dist no -n 0
run: poetry run pytest

0 comments on commit d91b6d0

Please sign in to comment.