Skip to content

Commit c2cc362

Browse files
committed
test: added action to trigger tests on PR open or sync
1 parent 4cfdd4e commit c2cc362

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# This workflow runs on pull requests and nightly
2+
name: pull_request_CPU_python11
3+
4+
on:
5+
# Run tests for every pull request targeting main
6+
pull_request:
7+
branches:
8+
- main
9+
types: [opened, synchronize, reopened]
10+
11+
jobs:
12+
run_tests:
13+
runs-on: ubuntu-latest
14+
15+
defaults:
16+
run:
17+
shell: bash -el {0}
18+
19+
steps:
20+
- name: Checkout repository
21+
uses: actions/checkout@v4
22+
with:
23+
path: wakis
24+
25+
- name: Setup Miniforge
26+
uses: conda-incubator/setup-miniconda@v2
27+
with:
28+
miniforge-version: latest
29+
python-version: "3.11"
30+
31+
- name: Install wakis
32+
run: |
33+
cd wakis
34+
pip install .['notebook']
35+
36+
- name: Print installed packages
37+
run: conda list
38+
39+
- name: Run pytest
40+
run: |
41+
cd wakis
42+
python -m pytest --color=yes -v -s tests

0 commit comments

Comments
 (0)