From 226839c7969ad18adc315d7fd9582f81294167fc Mon Sep 17 00:00:00 2001 From: Tieqiong Zhang Date: Fri, 1 Aug 2025 23:26:01 -0400 Subject: [PATCH 1/2] use centralized tests on pr workflow --- .github/workflows/tests-on-pr.yml | 53 +++++-------------------------- 1 file changed, 8 insertions(+), 45 deletions(-) diff --git a/.github/workflows/tests-on-pr.yml b/.github/workflows/tests-on-pr.yml index 43aa166..3deb95d 100644 --- a/.github/workflows/tests-on-pr.yml +++ b/.github/workflows/tests-on-pr.yml @@ -1,52 +1,15 @@ name: Tests on PR on: - push: - branches: - - main - - cookie pull_request: workflow_dispatch: jobs: - validate: - defaults: - run: - shell: bash -l {0} - - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - os: [ubuntu-latest, windows-latest, macos-13, macos-14] - python-version: [3.11, 3.12, 3.13] - - steps: - - name: Check out diffpy.srreal - uses: actions/checkout@v4 - - - name: Initialize miniconda - uses: conda-incubator/setup-miniconda@v3 - with: - auto-update-conda: true - auto-activate-base: false - python-version: ${{ matrix.python-version }} - - name: Conda config - run: | - conda config --add channels conda-forge - - name: Install diffpy.srreal and requirements - run: | - conda create -n test python=${{ matrix.python-version }} -y - source $(conda info --base)/etc/profile.d/conda.sh - conda activate test - conda install pip -y - conda config --set always_yes yes --set changeps1 no - conda install --file requirements/conda.txt -y - conda install --file requirements/tests.txt -y - python -m pip install . --no-deps - - - name: Validate diffpy.pdfgui - run: | - source $(conda info --base)/etc/profile.d/conda.sh - conda activate test - pytest tests + tests-on-pr: + uses: scikit-package/release-scripts/.github/workflows/_tests-on-pr.yml@v0 + with: + project: diffpy.srreal + c_extension: true + headless: false + secrets: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} From 7fceea8a0918f99e727efe71ba2a292c6c98eee9 Mon Sep 17 00:00:00 2001 From: Tieqiong Zhang Date: Fri, 1 Aug 2025 23:32:56 -0400 Subject: [PATCH 2/2] add news --- news/wf.rst | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 news/wf.rst diff --git a/news/wf.rst b/news/wf.rst new file mode 100644 index 0000000..2e17320 --- /dev/null +++ b/news/wf.rst @@ -0,0 +1,23 @@ +**Added:** + +* No news: workflow changes. + +**Changed:** + +* + +**Deprecated:** + +* + +**Removed:** + +* + +**Fixed:** + +* + +**Security:** + +*