Skip to content

Commit

Permalink
PIP Matrix Build
Browse files Browse the repository at this point in the history
  • Loading branch information
arcivanov committed Dec 14, 2022
1 parent 4c3486e commit efeff99
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,20 @@ jobs:
# - windows-latest
- macos-latest
python-version:
- '3.11'
- '3.10'
- '3.9'
- '3.8'
- '3.7'
pip-version:
- '22.3'
- '22.2'
- '22.1'
- '22.0'
env:
DEPLOY_PYTHONS: "3.9"
DEPLOY_PYTHONS: "3.11"
DEPLOY_OSES: "Linux"
DEPLOY_PIPS: "22.3"
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -33,11 +40,17 @@ jobs:
if: |
github.event_name == 'push' &&
contains(env.DEPLOY_OSES, runner.os) &&
contains(env.DEPLOY_PYTHONS, matrix.python-version)
contains(env.DEPLOY_PYTHONS, matrix.python-version) &&
contains(env.DEPLOY_PIPS, matrix.pip-version)
run: |
echo "PYB_EXTRA_ARGS=+upload" >> $GITHUB_ENV
- uses: actions/checkout@v3
- shell: bash
run: |
pip3 install -U pip~=${{ matrix.pip-version }} setuptools wheel
- uses: pybuilder/build@master
with:
checkout: false
python-version: ${{ matrix.python-version }}
pyb-extra-args: ${{ env.PYB_EXTRA_ARGS }}
build-summary:
Expand Down

0 comments on commit efeff99

Please sign in to comment.