build(deps): Bump mamba-org/setup-micromamba from 23e257ce1bdee5c863c217655617477b5887b494 to 5355d2492d268dbdaf56e69f6bb31ffeed15a934 #161
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
permissions: write-all | |
on: | |
pull_request: | |
push: | |
branches: [main] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
defaults: | |
run: | |
shell: bash -el {0} | |
jobs: | |
pre-commit-checks: | |
name: Pre-commit Checks | |
runs-on: ubuntu-latest | |
timeout-minutes: 30 | |
env: | |
PRE_COMMIT_USE_MICROMAMBA: 1 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: micromamba installation | |
uses: mamba-org/setup-micromamba@5355d2492d268dbdaf56e69f6bb31ffeed15a934 | |
- name: add micromamba to GITHUB_PATH | |
run: echo "${HOME}/micromamba-bin" >> "$GITHUB_PATH" | |
- name: Install Python 3.11 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.11" | |
- name: Run pre-commit checks | |
uses: pre-commit/action@v3.0.0 | |
env: | |
PRE_COMMIT_USE_MICROMAMBA: 1 | |
ci: | |
name: Testing CI | |
runs-on: ubuntu-latest | |
timeout-minutes: 30 | |
# TODO: include services database container once needed | |
steps: | |
- uses: actions/checkout@v4 | |
- name: conda env setup | |
uses: mamba-org/setup-micromamba@5355d2492d268dbdaf56e69f6bb31ffeed15a934 | |
with: | |
environment-file: environment.yml | |
cache-environment: true | |
- name: Install package | |
run: python -m pip install --no-build-isolation --no-deps --disable-pip-version-check -e . | |
- name: Run unit tests | |
run: python -m pytest --cov-report=xml | |
- name: Get Cover | |
uses: orgoro/coverage@v3.1 | |
if: github.event_name == 'pull_request' | |
with: | |
coverageFile: ./coverage.xml | |
token: ${{ github.token }} |