-
Notifications
You must be signed in to change notification settings - Fork 5
43 lines (39 loc) · 1.09 KB
/
build_python.yaml
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
# Workflow to build the parallelproj C/CUDA libs (incl. installation of CUDA)
name: python build
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
Testing:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: ['3.9','3.10']
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # default 1 is, which doesnt allow to get all tags which we need for version from scm
fetch-tags: true
- name: Set up PDM
uses: pdm-project/setup-pdm@v4
with:
python-version: ${{ matrix.python-version }}
- name: Show package version
run: |
git describe --tags
pdm show --version
- name: Install dependencies and package
run: |
pdm update -d -G test
pdm list
- name: Test CLI
run: |
pdm run pyapetnet_list_models
pdm run pyapetnet_predict_from_nifti -h
pdm run pyapetnet_predict_from_dicom -h
- name: Run Tests
run: |
pdm run tox