Skip to content

Commit

Permalink
modify GHA
Browse files Browse the repository at this point in the history
  • Loading branch information
gschramm committed Feb 22, 2024
1 parent f94ff59 commit 90025f8
Showing 1 changed file with 7 additions and 17 deletions.
24 changes: 7 additions & 17 deletions .github/workflows/build_python.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,26 +12,16 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
python-version: ['3.8', '3.9', '3.10', '3.11']

runs-on: ${{ matrix.os }}
env:
MPLBACKEND: Agg # https://github.com/orgs/community/discussions/26434

steps:
- uses: actions/checkout@v3

- name: Set up python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Install package
run: |
python -m pip install --upgrade pip
pip install .
- name: Run nifti prediction
run: |
cd demo_data
pyapetnet_predict_from_nifti brainweb_06_osem_cropped.nii brainweb_06_t1_cropped.nii S2_osem_b10_fdg_pe2i --no_coreg
- uses: actions/checkout@v4
- name: Setup PDM
uses: pdm-project/setup-pdm@v4
with:
python-version: 3.10
- name: Install dependencies
run: pdm install

0 comments on commit 90025f8

Please sign in to comment.