Skip to content

Commit

Permalink
Test with multiple pythons
Browse files Browse the repository at this point in the history
  • Loading branch information
nothingface0 committed Jan 22, 2024
1 parent 9335ba6 commit b17bbe1
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/build_installation_package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ on: [push]

jobs:
build_and_upload:
runs-on: python-3.8
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.6", "3.8"]
permissions:
contents: write
steps:
Expand All @@ -19,7 +22,8 @@ jobs:
ROOT_GIT_URL: ${{ vars.ROOT_GIT_URL }}
ROOT_GIT_TAG: ${{ vars.ROOT_GIT_TAG }}
run: |
export RELEASE_TAG=deployment_${DMWM_GIT_TAG}_dqmgui_${DQMGUI_GIT_TAG}_root_${ROOT_GIT_TAG}
export DQMGUI_PYTHON_VERSION=$($(which python3) -c 'import platform; print(platform.python_version())')
export RELEASE_TAG=python_${DQMGUI_PYTHON_VERSION}_deployment_${DMWM_GIT_TAG}_dqmgui_${DQMGUI_GIT_TAG}_root_${ROOT_GIT_TAG}
sudo apt update && sudo apt install -y libcurl4-gnutls-dev
$(which python3) --version
bash download_dependencies.sh DMWM_GIT_TAG=$DMWM_GIT_TAG DMWM_GIT_URL=$DMWM_GIT_URL DQMGUI_GIT_TAG=$DQMGUI_GIT_TAG ROOT_GIT_URL=$ROOT_GIT_URL ROOT_GIT_TAG=$ROOT_GIT_TAG
Expand All @@ -28,7 +32,7 @@ jobs:
The release name currently follows the convention:
deployment\_\`DMWM_GIT_TAG\`\_dqmgui\_\`DQMGUI_GIT_TAG\`\_root\_\`ROOT_GIT_TAG\`
python\_\`Python version\`\_deployment\_\`DMWM_GIT_TAG\`\_dqmgui\_\`DQMGUI_GIT_TAG\`\_root\_\`ROOT_GIT_TAG\`
Used repositories:
Expand All @@ -38,6 +42,8 @@ jobs:
* ROOT ([${ROOT_GIT_TAG}](${ROOT_GIT_URL}/tree/${ROOT_GIT_TAG}))
* Python $($(which python3) -c 'import platform; print(platform.python_version())')
" >> /tmp/release_body.md
echo "RELEASE_TAG=${RELEASE_TAG}" >> $GITHUB_ENV
- name: Archive package artifact
Expand Down

0 comments on commit b17bbe1

Please sign in to comment.