Skip to content

Commit

Permalink
Updating Python version from 3.9 -> 3.11 in git workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ChuckMac committed Nov 8, 2022
1 parent 2dbdfc5 commit 8d3cbdc
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 2 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/pypi.yml
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'}}
4 changes: 2 additions & 2 deletions .github/workflows/test-only.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ jobs:
steps:

- uses: actions/checkout@v2
- name: Set up Python 3.9
- name: Set up Python 3.11
uses: actions/setup-python@v2
with:
python-version: 3.9
python-version: 3.11

- name: Show env vars
run: set
Expand Down

0 comments on commit 8d3cbdc

Please sign in to comment.