if pydicom debug is on, store incoming datasets to private dir #32
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Deployment Notes: | |
# For MacOS: To run executable after download requires removing the extended attributes via xattr -r -c <path to exe/app> | |
name: anonymizer-test-build-upload | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
permissions: | |
contents: read | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [windows-2022, macos-13] | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v3 | |
with: | |
python-version: "3.11.3" | |
- name: Install pipenv for virtual environment | |
run: | | |
pip install pipenv | |
- name: Install dependencies including development dependencies | |
run: | | |
pipenv install --dev | |
- name: Run Unit Tests within pipenv with pytest and generate coverage report | |
env: | |
AWS_USERNAME: ${{ secrets.AWS_USERNAME }} | |
AWS_PASSWORD: ${{ secrets.AWS_PASSWORD }} | |
run: | | |
pipenv run coverage run -m pytest tests --log-cli-level=WARN | |
pipenv run coverage report -i --omit="tests/*" --fail-under=60 | |
- name: List site-packages | |
run: | | |
pipenv run python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())" | |
- name: Install create-dmg for macos | |
if: runner.os == 'macOS' | |
run: | | |
brew install create-dmg | |
- name: PyInstaller - Build for ${{ matrix.os }} | |
run: | | |
cd src | |
pipenv run python build.py | |
- name: Upload Artifact for ${{ matrix.os }} | |
uses: actions/upload-artifact@v4 | |
with: | |
name: anonymizer-${{ matrix.os }}-${{ env.version }} | |
path: src/dist | |
if-no-files-found: error | |
retention-days: 14 | |