Skip to content

Commit 254c83e

Browse files
authored
Update CI workflow for Python and R setup
1 parent b611862 commit 254c83e

File tree

1 file changed

+21
-12
lines changed

1 file changed

+21
-12
lines changed
Lines changed: 21 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,37 @@
11
name: SME Forensic Lab CI
22

3-
on: [push, pull_request]
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
48

59
jobs:
610
build:
711
runs-on: ubuntu-latest
12+
813
steps:
9-
- uses: actions/checkout@v4
10-
- name: Set up Python 3.10
11-
uses: actions/setup-python@v4
14+
- name: Checkout Code
15+
uses: actions/checkout@v4
16+
17+
- name: Set up Python 3.12
18+
uses: actions/setup-python@v5
1219
with:
13-
python-version: '3.10' # Matches your laptop environment
20+
python-version: '3.12'
1421

15-
- name: Install dependencies
22+
- name: Install Dependencies
1623
run: |
1724
python -m pip install --upgrade pip
18-
# This filter skips pywin32 on Linux runners
19-
sed -i '/pywin32/d' requirements.txt
2025
pip install -r requirements.txt
26+
2127
- name: Set up R
2228
uses: r-lib/actions/setup-r@v2
29+
2330
- name: Install Stylo
24-
run: Rscript -e "install.packages('stylo', repos='https://cloud.r-project.org')"
25-
- name: Run Core Verifications
2631
run: |
27-
python verify_pystyl.py
28-
python verify_adaptive.py
32+
Rscript -e "install.packages('stylo', repos='https://cloud.r-project.org')"
33+
34+
- name: Core Verification
35+
run: |
36+
python -c "import numpy; print('NumPy Success:', numpy.__version__)"
37+
python -c "import numba; print('Numba Success:', numba.__version__)"

0 commit comments

Comments
 (0)