From 6f8f9ab6b5ce68bb8c700988dba607bee7ed643c Mon Sep 17 00:00:00 2001 From: dachengx Date: Wed, 15 May 2024 20:24:32 +0800 Subject: [PATCH 1/2] Remove unnecessary duplicated tests --- .github/workflows/pytest.yml | 15 ++++----------- README.md | 6 +++--- docs/source/index.rst | 2 +- docs/source/installation.rst | 2 +- pyproject.toml | 2 +- 5 files changed, 10 insertions(+), 17 deletions(-) diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index e43e89f..d7bfa4c 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -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 @@ -29,7 +29,7 @@ jobs: matrix: os: [ "ubuntu-latest" ] python-version: [ "3.9", "3.10" ] - test: [ "coveralls", "pytest" ] + test: [ "coveralls" ] steps: # Setup and installation @@ -82,17 +82,10 @@ 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: | diff --git a/README.md b/README.md index 1bfcca5..3cc4bba 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/docs/source/index.rst b/docs/source/index.rst index 9215cbc..68ee89e 100644 --- a/docs/source/index.rst +++ b/docs/source/index.rst @@ -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. diff --git a/docs/source/installation.rst b/docs/source/installation.rst index dc58c71..db08e66 100644 --- a/docs/source/installation.rst +++ b/docs/source/installation.rst @@ -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: diff --git a/pyproject.toml b/pyproject.toml index d9d5a93..0f6df46 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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] From 2f692e506ff051510301b7a6b49399e66911e082 Mon Sep 17 00:00:00 2001 From: dachengx Date: Wed, 15 May 2024 20:28:51 +0800 Subject: [PATCH 2/2] Minor change --- .github/workflows/pytest.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index d7bfa4c..1023ac6 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -87,7 +87,6 @@ jobs: 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