Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unnecessary duplicated tests #78

Merged
merged 2 commits into from
May 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 4 additions & 12 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# 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
# coveralls.io/github/XENONnT/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
Expand All @@ -29,7 +29,7 @@ jobs:
matrix:
os: [ "ubuntu-latest" ]
python-version: [ "3.9", "3.10" ]
test: [ "coveralls", "pytest" ]
test: [ "coveralls" ]

steps:
# Setup and installation
Expand Down Expand Up @@ -82,19 +82,11 @@ jobs:
run: |
pip install .

- name: Test package
# This is running a normal test
env:
TEST_MONGO_URI: 'mongodb://localhost:27017/'
run: |
coverage run --source=axidence -m pytest --durations 0
coverage report

- name: Coveralls
- name: Test package and report to coveralls
# Make the coverage report and upload
env:
TEST_MONGO_URI: 'mongodb://localhost:27017/'
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
if: matrix.test == 'coveralls'
run: |
coverage run --source=axidence -m pytest --durations 0 -v
coveralls --service=github
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Axidence

[![Test package](https://github.com/dachengx/axidence/actions/workflows/pytest.yml/badge.svg?branch=main)](https://github.com/dachengx/axidence/actions/workflows/pytest.yml)
[![Coverage Status](https://coveralls.io/repos/github/dachengx/axidence/badge.svg?branch=main&kill_cache=1)](https://coveralls.io/github/dachengx/axidence?branch=main&kill_cache=1)
[![Test package](https://github.com/XENONnT/axidence/actions/workflows/pytest.yml/badge.svg?branch=main)](https://github.com/XENONnT/axidence/actions/workflows/pytest.yml)
[![Coverage Status](https://coveralls.io/repos/github/XENONnT/axidence/badge.svg?branch=main&kill_cache=1)](https://coveralls.io/github/XENONnT/axidence?branch=main&kill_cache=1)
[![PyPI version shields.io](https://img.shields.io/pypi/v/axidence.svg)](https://pypi.python.org/pypi/axidence/)
[![Documentation Status](https://readthedocs.org/projects/axidence/badge/?version=latest)](https://axidence.readthedocs.io/en/latest/?badge=latest)
[![pre-commit.ci status](https://results.pre-commit.ci/badge/github/dachengx/axidence/main.svg)](https://results.pre-commit.ci/latest/github/dachengx/axidence/main)
[![pre-commit.ci status](https://results.pre-commit.ci/badge/github/XENONnT/axidence/main.svg)](https://results.pre-commit.ci/latest/github/XENONnT/axidence/main)

Axidence is a stax-based data-driven accidental coincidence background simulation framework. It can also perform the peak-level salting to calculate the features related to ambient environment.

Expand Down
2 changes: 1 addition & 1 deletion docs/source/index.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Axidence
========

Github page: https://github.com/dachengx/axidence
Github page: https://github.com/XENONnT/axidence

Axidence is a strax-based data-driven accidental coincidence background simulation and peak-level salting framework.

Expand Down
2 changes: 1 addition & 1 deletion docs/source/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Option 2: install from source code

.. code-block:: console

git clone https://github.com/dachengx/axidence
git clone https://github.com/XENONnT/axidence
cd axidence

To install in your environment and in editable mode:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ classifiers = [
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering :: Physics",
]
repository = "https://github.com/dachengx/axidence"
repository = "https://github.com/XENONnT/axidence"
documentation = "https://readthedocs.org/projects/axidence/"

[tool.poetry.dependencies]
Expand Down
Loading