From 643b0f7ab3488085da502f0dd22e279d1a722736 Mon Sep 17 00:00:00 2001 From: Blaise deB Frederick Date: Tue, 10 Oct 2023 15:58:09 -0400 Subject: [PATCH] Trying to get pypi build working again --- .github/workflows/python-publish.yml | 7 ++++++- testdocker.sh | 17 +++++++++++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index ed49a6d14..8d4497bed 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -17,15 +17,20 @@ jobs: - name: Set up Python uses: actions/setup-python@v4 with: - python-version: '3.10' + python-version: '3.11' + ref: ${{ github.head_ref }} # checkout the correct branch name + fetch-depth: 0 + - name: Install dependencies run: | python -m pip install --upgrade pip pip install setuptools wheel twine + - name: Build and publish env: TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} run: | + git fetch --prune --unshallow python setup.py sdist bdist_wheel twine upload dist/* diff --git a/testdocker.sh b/testdocker.sh index 3dd9f443f..89c12873a 100755 --- a/testdocker.sh +++ b/testdocker.sh @@ -19,6 +19,23 @@ docker run \ --nprocs 4 \ --noglm +docker run \ + --rm \ + --ipc host \ + --mount type=bind,source=/Users/frederic/code/rapidtide/rapidtide/data/examples,destination=/data \ + -it \ + -v /tmp/.X11-unix:/tmp/.X11-unix \ + -u rapidtide fredericklab/rapidtide:latest \ + rapidtide \ + /data/src/sub-RAPIDTIDETEST.nii.gz \ + /data/dst/sub-RAPIDTIDETEST_disabledockermemfix \ + --disabledockermemfix \ + --passes 3 \ + --nprocs 4 \ + --noglm + +exit + docker run \ --rm \ --ipc host \