Skip to content

Commit

Permalink
Merge pull request #1 from karellen/refine_ci
Browse files Browse the repository at this point in the history
Refine CI
  • Loading branch information
arcivanov authored Oct 2, 2021
2 parents b61751d + ba3e536 commit bfd0612
Showing 1 changed file with 27 additions and 14 deletions.
41 changes: 27 additions & 14 deletions .github/workflows/kubernator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,24 +8,37 @@ jobs:
build:
runs-on: ubuntu-latest
continue-on-error: false
strategy:
fail-fast: false
matrix:
python-version:
- '3.10.0-rc.2'
- '3.9'
env:
DEPLOY_PYTHONS: "3.9"
DEPLOY_OSES: "Linux"
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
steps:
- uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: 3.9
architecture: x64
- name: Setup PyBuilder
shell: bash
run: pip install pybuilder
- name: Should Upload
if: github.event_name == 'push'
shell: bash
run: echo "PYB_UPLOAD=upload" >> "$GITHUB_ENV"
- name: Build
if: |
github.event_name == 'push' &&
contains(env.DEPLOY_OSES, runner.os) &&
contains(env.DEPLOY_PYTHONS, matrix.python-version)
shell: bash
run: pyb -E ci -v -X analyze publish install $PYB_UPLOAD
run: echo "PYB_EXTRA_ARGS=+upload" >> "$GITHUB_ENV"
- name: Build with PyBuilder
uses: pybuilder/build@master
with:
python-version: ${{ matrix.python-version }}
pyb-extra-args: ${{ env.PYB_EXTRA_ARGS }}
build-summary:
if: success() || failure()
runs-on: ubuntu-latest
name: Build Stable Summary
needs: build
steps:
- name: Check build matrix status
if: needs.build.result != 'success'
run: exit 1

0 comments on commit bfd0612

Please sign in to comment.