-
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updating Python version from 3.9 -> 3.11 in git workflow
- Loading branch information
Showing
2 changed files
with
46 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: PyPi Test and Push tagged release | ||
|
||
# Triggers the workflow on push or pull request events | ||
on: | ||
workflow_run: | ||
workflows: ["ADRFinder Test"] | ||
tags: '*.*' | ||
types: [completed] | ||
|
||
|
||
jobs: | ||
test-build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- uses: actions/checkout@v2 | ||
- name: Set up Python 3.11 | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.11 | ||
|
||
# - name: Install dependencies | ||
# run: | | ||
# python -m pip install --upgrade pip | ||
# pip install flake8 pytest | ||
# if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | ||
# if [ -f requirements-dev.txt ]; then pip install -r requirements-dev.txt; fi | ||
|
||
- name: Test that pip builds without error | ||
run: | | ||
pip3 --version | ||
python3 -m pip install wheel | ||
python3 setup.py bdist_wheel | ||
python3 -m pip install dist/adrfinder-*-none-any.whl --force | ||
adrfinder -d /tmp -p 10000 & | ||
sleep 3 | ||
curl http://127.0.0.1:10000/static/styles/pure-min.css >/dev/null | ||
killall -9 adrfinder | ||
# https://github.com/docker/build-push-action/blob/master/docs/advanced/test-before-push.md ? | ||
# https://github.com/docker/buildx/issues/59 ? Needs to be one platform? | ||
|
||
# https://github.com/docker/buildx/issues/495#issuecomment-918925854 | ||
#if: ${{ github.event_name == 'release'}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters