mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-04-25 04:46:23 +02:00
inspect deploy job before doing the release
This commit is contained in:
parent
030bef943e
commit
a2cce4209b
1 changed files with 41 additions and 2 deletions
43
.github/workflows/test-and-deploy.yml
vendored
43
.github/workflows/test-and-deploy.yml
vendored
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue