Skip to content

Commit

Permalink
Remove unnecessary duplicated tests (#78)
Browse files Browse the repository at this point in the history
* Remove unnecessary duplicated tests

* Minor change
  • Loading branch information
dachengx authored May 15, 2024
1 parent 049bb16 commit 67386ba
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 18 deletions.
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

0 comments on commit 67386ba

Please sign in to comment.