-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #103 from jamesgetx/fix_workflow
ci: fix workflow
- Loading branch information
Showing
1 changed file
with
53 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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/* |