Skip to content

New logging module #922

New logging module

New logging module #922

Workflow file for this run

name: Test package
# Trigger this code when a new release is published
on:
workflow_dispatch:
release:
types: [ created ]
pull_request:
push:
branches:
- master
- stable
jobs:
update:
name: "${{ matrix.test }}_py${{ matrix.python-version }}"
runs-on: ubuntu-latest
strategy:
fail-fast: False
matrix:
python-version: [3.8, 3.9, "3.10"]
test: [ 'coveralls', 'pytest' ]
steps:
# Setup and installation
- name: Checkout repo
uses: actions/checkout@v4
- name: Setup python
uses: actions/[email protected]
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
cache-dependency-path: 'extra_requirements/requirements-tests.txt'
- name: install files
run:
|
git clone https://github.com/XAMS-nikhef/amstrax_files --single-branch ../amstrax_files
pip install -e ../amstrax_files
- name: Install requirements
run:
|
pip install -r extra_requirements/requirements-tests.txt
pip install -e ../amstrax
- name: Test package
# This is running a normal test
if: matrix.test == 'pytest'
run: |
pytest -rsxv --durations 0
- name: Coveralls
# Make the coverage report and upload
env:
NUMBA_DISABLE_JIT: 1
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
if: matrix.test == 'coveralls'
run: |
coverage run --source=amstrax setup.py test -v
coveralls --service=github
# Done
- name: goodbye
run: echo "tests done, bye bye"