Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Actions for tests & pre-commit #3

Merged
merged 15 commits into from
Feb 2, 2023
39 changes: 39 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Run tests
simonbohnen marked this conversation as resolved.
Show resolved Hide resolved

on:
push:
branches:
- main
pull_request:
branches:
- main

defaults:
run:
shell: bash -l {0}

jobs:
run_tests:
name: Run tests
simonbohnen marked this conversation as resolved.
Show resolved Hide resolved
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Install mamba & create environment
simonbohnen marked this conversation as resolved.
Show resolved Hide resolved
uses: mamba-org/provision-with-micromamba@v15
with:
extra-specs: |
pytest-md
pytest-emoji

- name: Install quetz-client
run: |
pip install -e .

- name: Run pytest
uses: pavelzw/pytest-action@v2
# with:
# verbose: true
# emoji: true
# job-summary: true
# click-to-expand: true