Introduce extensions: Gubbins #19
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: Extensions Basic Tests | |
on: | |
push: | |
branches: | |
- main | |
- gubbins | |
pull_request: | |
branches: | |
- main | |
defaults: | |
run: | |
shell: bash -el {0} | |
jobs: | |
pytest: | |
name: Unit test - ${{ matrix.package }} | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- package: "./extensions/gubbins/gubbins-db" | |
dependencies: "./extensions/gubbins/gubbins-testing" | |
- package: "./extensions/gubbins/gubbins-routers" | |
dependencies: "./extensions/gubbins/gubbins-testing ./extensions/gubbins/gubbins-db" | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- uses: mamba-org/setup-micromamba@v1 | |
with: | |
# TODO: Use a conda environment file used for the diracx/base container image | |
environment-name: test-env | |
create-args: >- | |
python=3.11 | |
m2crypto | |
python-gfal2 | |
mypy | |
pip | |
init-shell: bash | |
post-cleanup: 'all' | |
- name: Set up environment | |
run: | | |
pip install pytest-github-actions-annotate-failures | |
pip install git+https://github.com/DIRACGrid/DIRAC.git@integration | |
pip install ${{ matrix.dependencies }} ${{ matrix.package }}[types] | |
- name: Run mypy | |
run: | | |
mypy ${{ matrix.package }}/src | |
- name: Run pytest | |
run: | | |
cd ${{ matrix.package }} | |
pip install .[testing] | |
pytest --cov-report=xml:coverage.xml --junitxml=report.xml | |
- name: Upload coverage report | |
uses: codecov/[email protected] |