build(deps): Bump mamba-org/setup-micromamba from 587376182cdfd0bbb62c54adc93431c9e201de52 to 60cea60f330f752de64c73f6769faa002cf37119 #97
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@60cea60f330f752de64c73f6769faa002cf37119 | |
- 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@60cea60f330f752de64c73f6769faa002cf37119 | |
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 }} |