Skip to content

Commit

Permalink
ci: Create basic CI
Browse files Browse the repository at this point in the history
  • Loading branch information
DahnJ committed Mar 2, 2025
1 parent 258e868 commit 06a82c6
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: CI

on:
push:
pull_request:
branches: [ main ]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Set up Conda
uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
activate-environment: myenv
environment-file: environment.yml

- name: Install development dependencies
shell: bash -l {0}
run: |
conda env update --file environment-dev.yml
- name: ruff check
shell: bash -l {0}
run: |
ruff check .
- name: pytest
shell: bash -l {0}
run: |
pytest tests/
1 change: 1 addition & 0 deletions environment-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@ channels:
- conda-forge
dependencies:
# Test
- ruff
- pytest
- pytest-cov

0 comments on commit 06a82c6

Please sign in to comment.