-
Notifications
You must be signed in to change notification settings - Fork 172
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use github actions instead of manual
- Loading branch information
Showing
1 changed file
with
2 additions
and
18 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 |
---|---|---|
|
@@ -17,9 +17,6 @@ jobs: | |
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
ref: bump-version | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v5 | ||
|
@@ -37,31 +34,18 @@ jobs: | |
|
||
- name: Check that formatting, linting, and tests pass for pydantic v1 | ||
run: poetry run make ci-v1 | ||
|
||
- name: Check that formatting, linting, and tests pass for pydantic v2 | ||
run: poetry run make ci-v2 | ||
|
||
- name: Build distribution | ||
run: poetry build | ||
|
||
- name: Configure git user | ||
run: | | ||
git config --global user.name 'BumpVersion[CI]' | ||
git config --global user.email '[email protected]' | ||
- name: Bump to version | ||
run: poetry run make version version=${{ github.ref_name }} | ||
|
||
- name: Commit new version | ||
run: | | ||
git commit -am "Update version to ${{ github.ref_name }}" | ||
git push | ||
- name: Merge into master | ||
run: | | ||
git checkout master | ||
git pull | ||
git merge origin/bump-version | ||
git push | ||
uses: EndBug/add-and-commit@v9 | ||
|
||
- name: Publish distribution to PyPI | ||
run: | | ||
|