Skip to content

Commit bca1f20

Browse files
authored
Merge pull request #7 from NimaSarajpoor/stumpy_actions_with_pixi
Add workflow to check pyfftw
2 parents c05daa6 + 8d5ab74 commit bca1f20

File tree

1 file changed

+59
-0
lines changed

1 file changed

+59
-0
lines changed
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: Check pyFFTW
2+
on:
3+
workflow_dispatch:
4+
schedule:
5+
- cron: '0 14 * * *' # 2pm UTC == 9am EST
6+
jobs:
7+
check_pyfftw:
8+
runs-on: ${{ matrix.os }}
9+
strategy:
10+
matrix:
11+
os: [ubuntu-latest, macos-latest, windows-latest]
12+
13+
steps:
14+
- name: Checkout STUMPY
15+
uses: actions/checkout@v4
16+
with:
17+
repository: stumpy-dev/stumpy
18+
19+
- name: Get Required Python Version
20+
id: python
21+
run: |
22+
python -m pip install pandas packaging lxml
23+
echo "version=$(python ./versions.py -pkg pyfftw)" >> $GITHUB_OUTPUT
24+
shell: bash
25+
26+
# Checkout python version
27+
- name: Set Up Python
28+
uses: actions/setup-python@v5
29+
with:
30+
python-version: "${{ steps.python.outputs.version }}"
31+
32+
- name: Display Python Version
33+
run: python -c "import sys; print(sys.version)"
34+
shell: bash
35+
36+
- name: Set Up Pixi
37+
uses: prefix-dev/setup-pixi@v0.9.4
38+
with:
39+
pixi-version: v0.62.2
40+
41+
- name: Set Up Python
42+
run: pixi add python="${{ steps.python.outputs.version }}"
43+
shell: bash
44+
45+
- name: Install FFTW and pyFFTW
46+
run: pixi add fftw pyfftw
47+
shell: bash
48+
49+
- name: Display Python Version
50+
run: pixi run python -c "import sys; print(sys.version)"
51+
shell: bash
52+
53+
- name: Show Installed Packages FFTW and pyFFTW
54+
run: pixi list | grep -E 'fftw|pyfftw'
55+
shell: bash
56+
57+
- name: Install STUMPY and Run Unit Tests
58+
run: pixi run bash ./test.sh unit
59+
shell: bash

0 commit comments

Comments
 (0)