Slove the bug when salting peaks overlap #148
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
# We run three types of tests: | |
# - Pytest -> these are the "normal" tests and should be run for all | |
# python versions | |
# - Coveralls -> this is to see if we are covering all our lines of | |
# code with our tests. The results get uploaded to | |
# coveralls.io/github/dachengx/axidence | |
# - pytest_no_database -> we want to make sure we can run the tests even | |
# if we don't have access to our database since this will e.g. happen | |
# when someone is pushing a PR from their own fork as we don't | |
# propagate our secrets there. | |
name: Test package | |
# Trigger this code when a new release is published | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ "ubuntu-latest" ] | |
python-version: [ "3.9", "3.10" ] | |
test: [ "coveralls", "pytest" ] | |
steps: | |
# Setup and installation | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/[email protected] | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Checkout repo | |
uses: actions/checkout@v3 | |
- name: Install dependencies | |
run: | | |
sudo apt-get install -y graphviz | |
python -m pip install --upgrade pip | |
python -m pip install pytest coverage coveralls | |
pip install git+https://github.com/AxFoundation/strax.git | |
pip install git+https://github.com/XENONnT/straxen.git | |
- name: Install Axidence | |
run: | | |
pip install . | |
- name: Test package | |
# This is running a normal test | |
run: | | |
coverage run --source=axidence -m pytest --durations 0 | |
coverage report | |
- name: Coveralls | |
# Make the coverage report and upload | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
if: matrix.test == 'coveralls' | |
run: | | |
coverage run --source=axidence -m pytest -v | |
coveralls --service=github | |
- name: goodbye | |
run: echo "tests done, bye bye" |