-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
OPS: Use new
octue/check-semantic-version
GitHub action
- Loading branch information
1 parent
ac4419e
commit 223956a
Showing
2 changed files
with
5 additions
and
54 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 |
---|---|---|
|
@@ -9,25 +9,17 @@ name: python-ci | |
on: [push] | ||
|
||
jobs: | ||
|
||
check-semantic-version: | ||
if: "!contains(github.event.head_commit.message, 'skipci')" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v3 | ||
with: | ||
# Set fetch-depth to 0 to fetch all tags (necessary for git-mkver to determine the correct semantic version). | ||
fetch-depth: 0 | ||
- uses: actions/setup-python@v2 | ||
- name: Install git-mkver | ||
run: | | ||
curl -L https://github.com/idc101/git-mkver/releases/download/v1.2.1/git-mkver-linux-amd64-1.2.1.tar.gz \ | ||
| tar xvz \ | ||
&& sudo mv git-mkver /usr/local/bin | ||
- name: Install semantic version checker | ||
run: pip install git+https://github.com/octue/conventional-commits | ||
- name: Check version | ||
run: check-semantic-version setup.py | ||
- uses: octue/[email protected] | ||
with: | ||
path: setup.py | ||
breaking_change_indicated_by: minor | ||
|
||
run-tests: | ||
if: "!contains(github.event.head_commit.message, 'skipci')" | ||
|
This file was deleted.
Oops, something went wrong.