Skip to content

feat: Setup wrapper to retrieve data #10

feat: Setup wrapper to retrieve data

feat: Setup wrapper to retrieve data #10

Workflow file for this run

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@9ef24caa388648dc149200514192b99bbf3563e4
- 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@9ef24caa388648dc149200514192b99bbf3563e4
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 }}