-
Notifications
You must be signed in to change notification settings - Fork 83
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 #277 from DontShaveTheYak/develop
Release v0.6.3
- Loading branch information
Showing
11 changed files
with
238 additions
and
187 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
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
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 |
---|---|---|
|
@@ -4,14 +4,39 @@ name: Release | |
concurrency: release | ||
|
||
on: | ||
pull_request: | ||
pull_request_target: | ||
types: closed | ||
branches: | ||
- develop | ||
- master | ||
|
||
jobs: | ||
check: | ||
name: Check Permissions | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- name: Get User Permission | ||
id: checkAccess | ||
uses: actions-cool/check-user-permission@v2 | ||
with: | ||
require: write | ||
username: ${{ github.triggering_actor }} | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Check User Permission | ||
if: steps.checkAccess.outputs.require-result == 'false' | ||
run: | | ||
echo "${{ github.triggering_actor }} does not have permissions on this repo." | ||
echo "Current permission level is ${{ steps.checkAccess.outputs.user-permission }}" | ||
echo "Job originally triggered by ${{ github.actor }}" | ||
exit 1 | ||
tag: | ||
name: Create Tag | ||
runs-on: ubuntu-latest | ||
if: github.event.pull_request.merged && (github.base_ref == 'develop' || github.base_ref == 'master') | ||
needs: check | ||
if: github.event.pull_request.merged | ||
outputs: | ||
tag: ${{ steps.bump.outputs.next_tag }} | ||
steps: | ||
|
@@ -22,7 +47,7 @@ jobs: | |
fetch-depth: 0 | ||
|
||
- name: Setup Python 3.11 | ||
uses: actions/setup-python@v4.7.1 | ||
uses: actions/setup-python@v5.1.0 | ||
with: | ||
python-version: '3.11' | ||
architecture: x64 | ||
|
@@ -75,24 +100,15 @@ jobs: | |
uses: actions/[email protected] | ||
|
||
- name: Setup Python 3.11 | ||
uses: actions/setup-python@v4.7.1 | ||
uses: actions/setup-python@v5.1.0 | ||
with: | ||
python-version: '3.11' | ||
architecture: x64 | ||
|
||
- name: Setup Poetry | ||
run: pip install poetry==1.4.0 | ||
|
||
- name: Publish to Test PyPI | ||
if: github.base_ref == 'develop' | ||
run: | | ||
poetry version ${{needs.tag.outputs.tag}} | ||
poetry build | ||
poetry config repositories.testpypi https://test.pypi.org/legacy/ | ||
poetry publish -r testpypi --username '__token__' --password '${{ secrets.TEST_PYPI_TOKEN }}' | ||
- name: Publish to PyPI | ||
if: github.base_ref == 'master' | ||
run: | | ||
poetry version ${{needs.tag.outputs.tag}} | ||
poetry build | ||
|
@@ -104,7 +120,7 @@ jobs: | |
needs: [tag, publish] | ||
steps: | ||
- name: Create Draft Release | ||
uses: release-drafter/release-drafter@v5.25.0 | ||
uses: release-drafter/release-drafter@v6.0.0 | ||
if: github.base_ref == 'develop' | ||
with: | ||
tag: ${{needs.tag.outputs.tag}} | ||
|
@@ -114,7 +130,7 @@ jobs: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Create Release | ||
uses: release-drafter/release-drafter@v5.25.0 | ||
uses: release-drafter/release-drafter@v6.0.0 | ||
if: github.base_ref == 'master' | ||
with: | ||
tag: ${{needs.tag.outputs.tag}} | ||
|
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 |
---|---|---|
|
@@ -4,21 +4,43 @@ on: | |
push: | ||
branches: | ||
- "master" | ||
pull_request_target: | ||
types: [opened, synchronize, reopened] | ||
pull_request: | ||
paths-ignore: | ||
- ".github/workflows/release.yml" | ||
- ".github/workflows/pr_checks.yml" | ||
types: [opened, synchronize, reopened] | ||
|
||
jobs: | ||
check: | ||
name: Check Permissions | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- name: Get User Permission | ||
id: checkAccess | ||
uses: actions-cool/check-user-permission@v2 | ||
with: | ||
require: write | ||
username: ${{ github.triggering_actor }} | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Check User Permission | ||
if: steps.checkAccess.outputs.require-result == 'false' | ||
run: | | ||
echo "${{ github.triggering_actor }} does not have permissions on this repo." | ||
echo "Current permission level is ${{ steps.checkAccess.outputs.user-permission }}" | ||
echo "Job originally triggered by ${{ github.actor }}" | ||
exit 1 | ||
single: | ||
runs-on: ubuntu-latest | ||
name: Python 3.11 | ||
needs: check | ||
steps: | ||
- name: Checkout Code | ||
uses: actions/[email protected] | ||
|
||
- name: Setup Latest Python | ||
uses: actions/setup-python@v4.7.1 | ||
uses: actions/setup-python@v5.1.0 | ||
with: | ||
python-version: 3.11 | ||
architecture: x64 | ||
|
@@ -41,7 +63,7 @@ jobs: | |
run: coverage xml --fail-under=0 | ||
|
||
- name: Upload coverage to Codecov | ||
uses: codecov/codecov-action@v3.1.4 | ||
uses: codecov/codecov-action@v4.3.0 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
flags: unit | ||
|
@@ -59,7 +81,7 @@ jobs: | |
uses: actions/[email protected] | ||
|
||
- name: Setup Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4.7.1 | ||
uses: actions/setup-python@v5.1.0 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
architecture: x64 | ||
|
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
Oops, something went wrong.