Skip to content

Commit

Permalink
refactor name to 'petutils', add workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
bendhouseart committed Oct 4, 2023
1 parent f0b85e2 commit a8de153
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 4 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/run_pytest.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: run_tests
on:
push:
workflow_call:
workflow_dispatch:
inputs:
debug_enabled:
type: boolean
description: 'Run the build with tmate debugging enabled (https://github.com/marketplace/actions/debugging-with-tmate)'
required: false
default: false

jobs:
test_with_pytest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Poetry
run: pipx install poetry
- uses: actions/setup-python@v4
with:
python-version: 3.11
cache: poetry
- name: Install dependencies
run: poetry install
- name: Run Tests
run: poetry run pytest tests/
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[tool.poetry]
name = "pet-utils"
name = "petutils"
version = "0.0.0"
description = ""
authors = ["Anthony Galassi <28850131+bendhouseart@users.noreply.github.com>"]
readme = "README.md"
packages = [{include = "pet_utils"}]
packages = [{include = "petutils"}]

[tool.poetry.dependencies]
python = "^3.10"
Expand Down
4 changes: 2 additions & 2 deletions tests/test_pet_utils.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import pytest
import pathlib
import re
from pet_utils.pet_utils import get_versions, zip_nifti, write_out_dataset_description_json
from pet_utils.pet_utils import collect_anat_and_pet
from petutils.petutils import get_versions, zip_nifti, write_out_dataset_description_json
from petutils.petutils import collect_anat_and_pet
import subprocess

project_dir = pathlib.Path(__file__).parent.parent.absolute()
Expand Down

0 comments on commit a8de153

Please sign in to comment.