feat: Setup wrapper to retrieve data #12
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@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 }} |