Skip to content

Commit

Permalink
inspect deploy job before doing the release
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinBubel committed Jul 22, 2024
1 parent 030bef9 commit a2cce42
Showing 1 changed file with 41 additions and 2 deletions.
43 changes: 41 additions & 2 deletions .github/workflows/test-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ jobs:
pytest GPy/testing
build-windows:
if: github.event_name == 'release'
# if: github.event_name == 'release'
strategy:
matrix:
os: [windows-latest]
Expand Down Expand Up @@ -143,7 +143,7 @@ jobs:
path: dist

build-macos:
if: github.event_name == 'release'
# if: github.event_name == 'release'
strategy:
matrix:
os: [macos-latest]
Expand Down Expand Up @@ -243,6 +243,45 @@ jobs:
# name: dist-artifacts-manylinux-${{ matrix.python }}
# path: dist/*

deploy-test:
runs-on: ubuntu-latest
needs: [test-windows, test-linux, test-macos, build-linux, build-windows, build-macos]
# if: github.event_name == 'release'
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup python
uses: actions/setup-python@v4
with:
python-version: '3.9'

- name: Install twine
run: |
pip install --upgrade pip
pip install twine
- name: Download all artifacts to a specific directory
uses: actions/download-artifact@v3
with:
path: dist

- name: Create dist directory
run: mkdir -p dist

- name: Move files from subdirectories
run: |
for subdirectory in dist/*/; do
dir_name=$(basename "$subdirectory")
mv "$subdirectory"* dist/
rm -r "$subdirectory"
echo "Moved files from '$dir_name' to 'dist/'"
done
- name: Inspect wheel files
run: |
ls -R dist
deploy:
runs-on: ubuntu-latest
needs: [test-windows, test-linux, test-macos, build-linux, build-windows, build-macos]
Expand Down

0 comments on commit a2cce42

Please sign in to comment.