Skip to content

Commit

Permalink
Merge pull request #104 from jamesgetx/fix_workflow1
Browse files Browse the repository at this point in the history
ci: fix workflow
  • Loading branch information
jamesgetx authored Jul 19, 2023
2 parents 4e302a9 + dd18e7f commit af72d7c
Showing 1 changed file with 53 additions and 53 deletions.
106 changes: 53 additions & 53 deletions .github/workflows/bkpaas-auth.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,57 +39,57 @@ jobs:
pip install mypy==0.910 types-requests==2.25.0 types-setuptools==57.0.0 types-dataclasses==0.1.5 types-six==0.1.7 types-toml==0.1.3
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
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/*
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 af72d7c

Please sign in to comment.