- extract, isolate and package it in a completely independent Python module, versioned and in a way that allows releases on PyPI.org - fixed error in placeholder for secondary school (data registry defaults) - added restriction in pytest version to install - expected number of new cases fix - data registry update (schema v2.1.1) - github update - deprecate ExpertApplication and CO2Application - changes to reflect schema update 2.0.2 - version update - Fixed error with f_inf (short-range) - new folder layout - Conditional probability data update - General fixes - Fitting results in L/S/person - CO2 fitting algorithm refinement
68 lines
1.6 KiB
YAML
68 lines
1.6 KiB
YAML
# This module is part of CAiMIRA. Please see the repository at
|
|
# https://gitlab.cern.ch/caimira/caimira for details of the license and terms of use.
|
|
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
- 'feature/*'
|
|
pull_request:
|
|
branches:
|
|
- master
|
|
- 'feature/*'
|
|
workflow_dispatch:
|
|
inputs:
|
|
reason:
|
|
description: 'Reason'
|
|
required: false
|
|
default: 'Manual trigger'
|
|
|
|
jobs:
|
|
test-install:
|
|
runs-on: ubuntu-latest
|
|
env:
|
|
PROJECT_ROOT: ./
|
|
PROJECT_NAME: caimira
|
|
CAIMIRA_TESTS_CALCULATOR_TIMEOUT: 30
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Set up Python 3.9
|
|
uses: actions/setup-python@v2
|
|
with:
|
|
python-version: 3.9
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
python -m pip install ${PROJECT_ROOT}[test]
|
|
|
|
- name: Run tests
|
|
run: |
|
|
mkdir -p ~/not-the-source-dir && cd ~/not-the-source-dir
|
|
python -m pytest --pyargs ${PROJECT_NAME}
|
|
test-dev:
|
|
runs-on: ubuntu-20.04
|
|
env:
|
|
PROJECT_ROOT: ./
|
|
PROJECT_NAME: caimira
|
|
CAIMIRA_TESTS_CALCULATOR_TIMEOUT: 30
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Set up Python 3.9
|
|
uses: actions/setup-python@v2
|
|
with:
|
|
python-version: 3.9
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
python -m pip install -e ${PROJECT_ROOT}[test]
|
|
python -m pip install pytest-cov
|
|
|
|
- name: Run tests
|
|
run: |
|
|
cd ${PROJECT_ROOT}
|
|
python -m pytest ./${PROJECT_NAME} --cov=${PROJECT_NAME} --junitxml=report.xml
|