Skip to content

Commit b21abdc

Browse files
authored
🔀 Merge pull request #89 from astariul/add_prod_tests
Add production tests, to ensure the PyPi index is up and running
2 parents 1741793 + d11e61f commit b21abdc

File tree

2 files changed

+27
-36
lines changed

2 files changed

+27
-36
lines changed

‎.github/workflows/install_check.yml

Lines changed: 0 additions & 36 deletions
This file was deleted.

‎.github/workflows/static.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,30 @@ jobs:
4141
- name: Deploy to GitHub Pages
4242
id: deployment
4343
uses: actions/deploy-pages@v4
44+
45+
prod_checks:
46+
runs-on: ubuntu-latest
47+
needs: deploy
48+
steps:
49+
- uses: actions/setup-python@v5
50+
- name: Install public-hello
51+
run: |
52+
python -m pip install --upgrade pip
53+
pip install public-hello --extra-index-url https://astariul.github.io/github-hosted-pypi/
54+
55+
# Check if the package and its dependency was installed
56+
pip show public-hello
57+
pip show mydependency
58+
59+
# The code from the package should be accessible
60+
python -c "from public_hello import hi; assert hi() == 'Hello world from public repository (with a dependency)'"
61+
- name: Install public-hello older version
62+
run: |
63+
python -m pip install --upgrade pip
64+
pip install public-hello==0.1 --extra-index-url https://astariul.github.io/github-hosted-pypi/
65+
66+
# Check if the package was installed
67+
pip show public-hello
68+
69+
# The code from the package should be accessible
70+
python -c "from public_hello import hi; assert hi() == 'Hello world from public repository'"

0 commit comments

Comments
 (0)