Skip to content

Commit

Permalink
Add github action for pytest
Browse files Browse the repository at this point in the history
  • Loading branch information
leavauchier committed Mar 14, 2024
1 parent 3d96548 commit c6cf317
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: ci

on:
pull_request:
branches:
- main
- dev

jobs:
build_and_test:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write

steps:
- name: Checkout branch
uses: actions/checkout@v4
# See https://github.com/marketplace/actions/setup-micromamba
- name: Install conda env
uses: mamba-org/[email protected]
with:
environment-file: environment.yml
environment-name: lidro # activate the environment
cache-environment: true
cache-downloads: true
generate-run-shell: true
- name: Unit test
shell: micromamba-shell {0}
run: python -m pytest -s --log-cli-level DEBUG

0 comments on commit c6cf317

Please sign in to comment.