Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix build and deploy actions #1093

Merged
merged 16 commits into from
Jul 23, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
inspect deploy job before doing the release
MartinBubel committed Jul 22, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit a2cce4209bf5d73466752a80dd1e5800655dbf7b
43 changes: 41 additions & 2 deletions .github/workflows/test-and-deploy.yml
Original file line number Diff line number Diff line change
@@ -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]