Skip to content
Merged
Changes from all commits
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
36 changes: 36 additions & 0 deletions .github/workflows/install_check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Installation test after page deployment

on:
# Run after a new version is deployed
pages:
types: [deploy]

# On demand
workflow_dispatch:

jobs:
post_deploy_test:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-python@v5
- name: Install public-hello
run: |
python -m pip install --upgrade pip
pip install public-hello --extra-index-url https://astariul.github.io/github-hosted-pypi/

# Check if the package and its dependency was installed
pip show public-hello
pip show mydependency

# The code from the package should be accessible
python -c "from public_hello import hi; assert hi() == 'Hello world from public repository (with a dependency)'"
- name: Install public-hello older version
run: |
python -m pip install --upgrade pip
pip install public-hello==0.1 --extra-index-url https://astariul.github.io/github-hosted-pypi/

# Check if the package was installed
pip show public-hello

# The code from the package should be accessible
python -c "from public_hello import hi; assert hi() == 'Hello world from public repository'"