Skip to content

use setuptools instead of pdm for package build #64

use setuptools instead of pdm for package build

use setuptools instead of pdm for package build #64

Workflow file for this run

name: Build and Test Package
on:
push:
branches:
- master
pull_request:
jobs:
build-and-test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.9, 3.11, 3.12]
steps:
# Checkout the repository
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0 # Fetch all history to ensure tags are available
# Set up Python
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }} # Change to the desired Python version
# Install dependencies
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
# Build the package
- name: Build the package
run: |
python -m build
# Test importing the package
- name: Test the package import
run: |
pip install pytest
pyapetnet_list_models
pyapetnet_predict_from_nifti -h
pyapetnet_predict_from_dicom -h
pytest -vv tests