Skip to content

Commit

Permalink
Merge pull request #103 from jamesgetx/fix_workflow
Browse files Browse the repository at this point in the history
ci: fix workflow
  • Loading branch information
jamesgetx authored Jul 19, 2023
2 parents 8640ebc + 483a0cc commit 4e302a9
Showing 1 changed file with 53 additions and 52 deletions.
105 changes: 53 additions & 52 deletions .github/workflows/bkpaas-auth.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,55 +40,56 @@ jobs:
mypy sdks/bkpaas-auth --config-file=sdks/bkpaas-auth/pyproject.toml
test:
strategy:
fail-fast: false
matrix:
python-version: ['3.6', '3.7', '3.8', '3.9', '3.10']
os: [ubuntu-18.04, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Set up Poetry
uses: abatilo/[email protected]
with:
poetry-version: 1.1.13
- name: Install dependencies
working-directory: sdks/bkpaas-auth
run: |
poetry export --without-hashes --dev -o requirements-dev.txt
python -m pip install --upgrade pip
python -m pip install -r requirements-dev.txt
python -m pip install tox-gh-actions==2.8.1
- name: Run test with tox targets for ${{ matrix.python-version }}
working-directory: sdks/bkpaas-auth
run: tox
build:
runs-on: macos-latest
if: github.event.release && contains(github.event.release.tag_name, 'bkpaas-auth')
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Set up Poetry
uses: abatilo/[email protected]
with:
poetry-version: 1.1.13
- name: Build bkpaas-auth
run: |
cd sdks/bkpaas-auth
poetry install
poetry build
echo "${{ github.event.relesae.tag_name }} ${{ github.sha }}" > Release.txt
cat Release.txt
- name: Release
uses: softprops/action-gh-release@v1
with:
files: |
Release.txt
sdks/bkpaas-auth/dist/*
strategy:
fail-fast: false
matrix:
python-version: ['3.6', '3.7', '3.8', '3.9', '3.10']
os: [ubuntu-18.04, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Set up Poetry
uses: abatilo/[email protected]
with:
poetry-version: 1.1.13
- name: Install dependencies
working-directory: sdks/bkpaas-auth
run: |
poetry export --without-hashes --dev -o requirements-dev.txt
python -m pip install --upgrade pip
python -m pip install -r requirements-dev.txt
python -m pip install tox-gh-actions==2.8.1
- name: Run test with tox targets for ${{ matrix.python-version }}
working-directory: sdks/bkpaas-auth
run: tox

build:
runs-on: macos-latest
if: github.event.release && contains(github.event.release.tag_name, 'bkpaas-auth')
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Set up Poetry
uses: abatilo/[email protected]
with:
poetry-version: 1.1.13
- name: Build bkpaas-auth
run: |
cd sdks/bkpaas-auth
poetry install
poetry build
echo "${{ github.event.relesae.tag_name }} ${{ github.sha }}" > Release.txt
cat Release.txt
- name: Release
uses: softprops/action-gh-release@v1
with:
files: |
Release.txt
sdks/bkpaas-auth/dist/*

0 comments on commit 4e302a9

Please sign in to comment.