-
Notifications
You must be signed in to change notification settings - Fork 4
48 lines (40 loc) · 1.14 KB
/
test.yml
File metadata and controls
48 lines (40 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: openMINDS_Python_test_pipeline
on:
pull_request:
branches:
- pipeline
jobs:
build_and_test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.12", "3.14"]
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install requirements
run: |
pip install -r requirements.txt
- name: Run build
run: |
python build.py
- name: Test built package
run: |
pip install pytest pytest-cov
pip install ./target
if [ "${{ matrix.python-version }}" = "3.14" ]; then
pytest -v --cov=openminds --cov-report term --cov-report lcov pipeline/tests
else
pytest -v pipeline/tests
fi
- name: Upload coverage to Coveralls
if: matrix.python-version == '3.14'
uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: coverage.lcov
parallel: false