build(deps): Bump google-github-actions/setup-gcloud from 63496e652100112a8db8a71668b77c67aa1ab071 to 5a5f7b85fca43e76e53463acaa9d408a03c98d3a #58
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@bdff0b7f317300a7c04a9050b17168c9a96a2a9a | |
- name: add micromamba to GITHUB_PATH | |
run: echo "${HOME}/micromamba-bin" >> "$GITHUB_PATH" | |
- name: Install Python 3.11 | |
uses: actions/setup-python@v4 | |
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@bdff0b7f317300a7c04a9050b17168c9a96a2a9a | |
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 }} |