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

Package update - build and publish #6031

Merged
merged 48 commits into from
Mar 19, 2024
Merged
Changes from 1 commit
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
88fbe22
Small updates to package build
hoxbro Dec 14, 2023
a9d6f02
Update env
hoxbro Dec 14, 2023
0999454
Add upload artififact to conda build
hoxbro Dec 14, 2023
e7c60f3
Remove plural
hoxbro Dec 14, 2023
4d1bfaf
Try publish conda step
hoxbro Dec 14, 2023
df5e97a
Debug
hoxbro Dec 14, 2023
324acb1
Add tag
hoxbro Dec 14, 2023
78f10ad
Try with env
hoxbro Dec 14, 2023
e2d838e
Add waiting room
hoxbro Dec 14, 2023
3af394b
Remove python version for conda and only run waiting room if tag
hoxbro Dec 14, 2023
3ac5ced
Try fetch-tags and upload_artifact pypi
hoxbro Dec 14, 2023
6cac210
Add more information to approval
hoxbro Dec 14, 2023
2da90fb
Use build for PyPI package
hoxbro Dec 14, 2023
6681e07
Small updates
hoxbro Dec 14, 2023
ec934f9
Small updates
hoxbro Dec 14, 2023
893c5a9
Add pip_publish
hoxbro Dec 14, 2023
439a051
Small tweaks to pip_publish
hoxbro Dec 14, 2023
63d95f9
Small tweaks to conda_publish
hoxbro Dec 14, 2023
f94ec53
Add pip_install step
hoxbro Dec 14, 2023
1b390d1
Small changes
hoxbro Dec 14, 2023
8804014
Add global defaults
hoxbro Dec 14, 2023
61561be
Add conda_install step
hoxbro Dec 14, 2023
7634de2
fix print and align install and publish
hoxbro Dec 14, 2023
370e762
DEBUG
hoxbro Dec 14, 2023
e8fa629
Use CONDA_PATH for unpacking
hoxbro Dec 14, 2023
98274dc
Add python install
hoxbro Dec 14, 2023
abfd776
Clean up conda install
hoxbro Dec 14, 2023
e10bdde
Remove conda_install
hoxbro Dec 14, 2023
580eeed
Clean up file
hoxbro Dec 14, 2023
5b0e0fc
Empty commit
hoxbro Dec 14, 2023
18a7a26
Add back fetch unshallow
hoxbro Dec 14, 2023
61a1c69
Uncomment anaconda main upload
hoxbro Dec 14, 2023
4512ae5
Run build on prs
hoxbro Dec 14, 2023
69ae182
Add simple test to conda-build
hoxbro Dec 14, 2023
b9475c2
Simplify conda build
hoxbro Dec 14, 2023
75f0450
DEBUG
hoxbro Dec 14, 2023
1de328d
UNDEBUG
hoxbro Dec 14, 2023
cf6d373
Upload upload and download artifact to version 4
hoxbro Dec 14, 2023
1ee3ae8
Merge branch 'main' into package_update
hoxbro Dec 16, 2023
b03c588
Don't build packages for PR but run cron each night
hoxbro Dec 18, 2023
1fbe1f3
Merge branch 'main' into package_update
hoxbro Dec 19, 2023
d6bdb6f
Merge branch 'main' into package_update
hoxbro Mar 18, 2024
4047f16
Move waiting room to top
hoxbro Mar 18, 2024
04fee6c
Update names
hoxbro Mar 18, 2024
964476a
Update artifact versions
hoxbro Mar 18, 2024
279e8ac
Test run of the workflow
hoxbro Mar 18, 2024
102827f
Clean up
hoxbro Mar 18, 2024
b22147b
Apply suggestions from code review
hoxbro Mar 18, 2024
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
Add pip_install step
[skip ci]
  • Loading branch information
hoxbro committed Dec 14, 2023

Verified

This commit was signed with the committer’s verified signature. The key has expired.
addaleax Anna Henningsen
commit f94ec5379eb1c7e8a0f043b77cd5afc2928092e3
22 changes: 21 additions & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -112,6 +112,26 @@ jobs:
path: dist/
if-no-files-found: error

pip_install:
name: Install PyPI Package
runs-on: 'ubuntu-latest'
needs: [pip_build]
defaults:
run:
shell: bash -el {0}
steps:
- uses: actions/setup-python@v4
with:
python-version: ${{ env.PYTHON_VERSION }}
- uses: actions/download-artifact@v3
with:
name: pip_build
path: dist/
- name: Install package
run: python -m pip install dist/*.whl
- name: Test package
run: python -c "import $PACKAGE"

pip_publish:
name: Publish PyPI Package
runs-on: ubuntu-latest
@@ -132,7 +152,7 @@ jobs:
waiting_room:
name: Waiting Room
runs-on: ubuntu-latest
needs: [conda_build, pip_build]
needs: [conda_build, pip_install]
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
environment:
name: publish