Skip to content

Commit 9d4bca1

Browse files
Carol MuchemiCarol Muchemi
authored andcommitted
Added test job to run all tests upon push or pull requests on the master branch
1 parent b36399c commit 9d4bca1

1 file changed

Lines changed: 27 additions & 1 deletion

File tree

.github/workflows/test.yml

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ name: CI
22

33
on:
44
pull_request:
5+
branches: [ master ]
56
push:
67
paths-ignore:
78
- '**.md'
@@ -12,6 +13,10 @@ on:
1213
jobs:
1314
build:
1415
runs-on: ubuntu-latest
16+
strategy:
17+
matrix:
18+
python-version: [ "3.10", "3.11", "3.12", "3.13" ]
19+
1520
steps:
1621
- name: Checkout reposistory
1722
uses: actions/checkout@v3
@@ -21,7 +26,7 @@ jobs:
2126
- name: Install Python environment needed for the relpo command
2227
uses: actions/setup-python@v5
2328
with:
24-
python-version: '3.13'
29+
python-version: ${{ matrix.python-version }}
2530

2631
- name: Install pixi
2732
run: 'curl -fsSL https://pixi.sh/install.sh | sh'
@@ -37,3 +42,24 @@ jobs:
3742

3843
- name: Run tests
3944
run: 'make testall'
45+
46+
# Including GitHub Action for automated tests
47+
tests:
48+
runs-on: ubuntu-latest
49+
steps:
50+
- name: Checkout repository
51+
uses: actions/checkoutv@3
52+
53+
- name: Setup Python ${{ matrix.python-version }}
54+
uses: actions/setup-python@v5
55+
with:
56+
python-version: ${{ matrix.python-version }}
57+
cache: "pip"
58+
59+
- name: Install dependencies
60+
run: |
61+
python -m pip install --upgrade pip
62+
pip install mne pandarallel rdkit transformers accelerate polars
63+
64+
- name: Run tests
65+
run: 'make testall'

0 commit comments

Comments
 (0)