inspect deploy job before doing the release

This commit is contained in:
Martin Bubel 2024-07-22 11:22:23 +02:00
parent 030bef943e
commit a2cce4209b

View file

@ -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]
@ -143,7 +143,7 @@ jobs:
path: dist
build-macos:
if: github.event_name == 'release'
# if: github.event_name == 'release'
strategy:
matrix:
os: [macos-latest]
@ -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]