diff --git a/.github/workflows/bkpaas-auth.yml b/.github/workflows/bkpaas-auth.yml index 02299537..1958da09 100644 --- a/.github/workflows/bkpaas-auth.yml +++ b/.github/workflows/bkpaas-auth.yml @@ -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/actions-poetry@v2.1.0 - 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/actions-poetry@v2.1.0 - 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/* \ No newline at end of file + 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/actions-poetry@v2.1.0 + 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/actions-poetry@v2.1.0 + 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/* \ No newline at end of file