Skip to content

Commit ea1c888

Browse files
authored
chore: revert tests-on-pr.yml back to original
1 parent ad73cb4 commit ea1c888

File tree

1 file changed

+40
-8
lines changed

1 file changed

+40
-8
lines changed

.github/workflows/tests-on-pr.yml

Lines changed: 40 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,47 @@
11
name: Tests on PR
22

33
on:
4+
push:
5+
branches:
6+
- main
7+
- cookie
48
pull_request:
59
workflow_dispatch:
610

711
jobs:
8-
tests-on-pr:
9-
uses: scikit-package/release-scripts/.github/workflows/_tests-on-pr.yml@v0
10-
with:
11-
project: diffpy.srreal
12-
c_extension: true
13-
headless: false
14-
secrets:
15-
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
12+
validate:
13+
defaults:
14+
run:
15+
shell: bash -l {0}
16+
17+
runs-on: ${{ matrix.os }}
18+
strategy:
19+
fail-fast: false
20+
matrix:
21+
os: [ubuntu-latest, windows-latest, macos-13, macos-14]
22+
python-version: [3.11, 3.12, 3.13]
23+
24+
steps:
25+
- name: Check out diffpy.srreal
26+
uses: actions/checkout@v4
27+
28+
- name: Initialize miniconda
29+
uses: conda-incubator/setup-miniconda@v3
30+
with:
31+
activate-environment: test
32+
auto-update-conda: true
33+
environment-file: environment.yml
34+
auto-activate-base: false
35+
python-version: ${{ matrix.python-version }}
36+
37+
- name: Conda config
38+
run: >-
39+
conda config --set always_yes yes
40+
--set changeps1 no
41+
- name: Install diffpy.srreal and requirements
42+
run: |
43+
conda install --file requirements/conda.txt
44+
conda install --file requirements/test.txt
45+
python -m pip install . --no-deps
46+
- name: Validate diffpy.pdfgui
47+
run: pytest tests

0 commit comments

Comments
 (0)