-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* ready for 1.0 * lint * Update version.yml * remove ::set-output * standardise versions * missed one * make pip install depend on current commit
- Loading branch information
Showing
8 changed files
with
117 additions
and
48 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
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 |
---|---|---|
@@ -0,0 +1,66 @@ | ||
name: Create Tag and Draft Release with Notes | ||
|
||
on: | ||
push: | ||
branches: | ||
- trunk | ||
paths: | ||
- 'setup.py' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
check-and-extract: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
version: ${{ steps.get-version.outputs.version }} | ||
tag-exists: ${{ steps.check-tag.outputs.exists }} | ||
|
||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Extract version from setup.py | ||
id: get-version | ||
run: | | ||
VERSION=$(cat setup.py | grep -E '^ +version="[0-9.]+",' | cut -d'"' -f2) | ||
echo "Extracted version is $VERSION" | ||
echo "version=$VERSION" >> "$GITHUB_OUTPUT" | ||
- name: Check if tag exists | ||
id: check-tag | ||
run: | | ||
if git tag | grep -q "${{ steps.get-version.outputs.version }}"; then | ||
echo "Tag exists" | ||
echo "exists=1" >> "$GITHUB_OUTPUT" | ||
else | ||
echo "Tag does not exist" | ||
echo "exists=0" >> "$GITHUB_OUTPUT" | ||
fi | ||
create-tag-and-release: | ||
needs: check-and-extract | ||
if: needs.check-and-extract.outputs.tag-exists == '0' | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Create and push tag | ||
run: | | ||
git config --global user.name "GitHub Action" | ||
git config --global user.email "action@github.com" | ||
git tag ${{ needs.check-and-extract.outputs.version }} | ||
git push origin ${{ needs.check-and-extract.outputs.version }} | ||
- name: Install GitHub CLI | ||
run: | | ||
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-key C99B11DEB97541F0 | ||
sudo apt-add-repository https://cli.github.com/packages | ||
sudo apt update | ||
sudo apt install gh | ||
- name: Draft a new release with autogenerated notes | ||
run: | | ||
gh auth login --with-token <<< "${{ secrets.GITHUB_TOKEN }}" | ||
gh release create ${{ needs.check-and-extract.outputs.version }} --title "Release ${{ needs.check-and-extract.outputs.version }}" --generate-notes --draft |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
pyarrow>=12.0.1 | ||
pandas>=1.3.5 | ||
certifi==2022.12.07 | ||
pyarrow==13.0.0 | ||
pandas==2.0.3 | ||
certifi==2023.7.22 | ||
requests==2.31.0 |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
pylint==2.17.6 | ||
flake8==6.1.0 | ||
pytest==7.4.2 |