-
Notifications
You must be signed in to change notification settings - Fork 0
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 #19 from martynvdijke/develop
Release 0.,4.2
- Loading branch information
Showing
13 changed files
with
354 additions
and
1,891 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 |
---|---|---|
@@ -0,0 +1,76 @@ | ||
name: CD | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 # Fetch all history for changelog and tag | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.12' # Adjust to your project's Python version | ||
|
||
- name: Install Poetry | ||
run: pip install poetry | ||
|
||
- name: Configure Poetry to use the same Python version as setup-python | ||
run: poetry env use $(python -c "import sys; print(sys.executable)") | ||
|
||
- name: Install dependencies | ||
run: poetry install | ||
|
||
- name: Install Git Chglog | ||
run: | | ||
curl -sSL https://git.io/install-git-chglog | bash -s -- -b /usr/local/bin | ||
git-chglog --version | ||
- name: Generate Changelog | ||
run: git-chglog -o CHANGELOG.md | ||
|
||
- name: Commit Changelog | ||
run: | | ||
git config --global user.name 'github-actions[bot]' | ||
git config --global user.email 'github-actions[bot]@users.noreply.github.com' | ||
git add CHANGELOG.md | ||
git commit -m "chore: update changelog" | ||
- name: Bump version and tag | ||
id: tag | ||
run: | | ||
VERSION=$(poetry version -s) | ||
NEW_TAG=v$(echo $VERSION | awk -F. '{$NF += 1; OFS="."; print}') | ||
echo "Bumping tag to $NEW_TAG" | ||
git tag $NEW_TAG | ||
git push origin $NEW_TAG | ||
git push origin master | ||
echo "::set-output name=new_tag::$NEW_TAG" | ||
- name: Push changes | ||
run: git push origin master | ||
|
||
- name: Publish to PyPI | ||
env: | ||
POETRY_PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }} | ||
run: poetry publish --build --username __token__ --password $POETRY_PYPI_TOKEN | ||
|
||
- name: Create GitHub Release | ||
uses: actions/create-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tag_name: ${{ steps.tag.outputs.new_tag }} | ||
release_name: Release ${{ steps.tag.outputs.new_tag }} | ||
draft: false | ||
prerelease: false | ||
body: | | ||
See the changelog for details. |
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,41 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
lint-and-test: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
python-version: ['3.10', '3.11', '3.12'] | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install Poetry | ||
run: pip install poetry | ||
|
||
- name: Configure Poetry to use the same Python version as setup-python | ||
run: poetry env use $(python -c "import sys; print(sys.executable)") | ||
|
||
- name: Install dependencies | ||
run: poetry install | ||
|
||
- name: Run ruff | ||
run: poetry run ruff . | ||
|
||
- name: Run tests | ||
run: poetry run pytest |
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 |
---|---|---|
|
@@ -18,3 +18,4 @@ lib64 | |
*.pyc | ||
*.pyo | ||
youtube_playlist_randomizer/__pycache_/* | ||
poetry.lock |
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,5 +1,8 @@ | ||
|
||
## v0.1.1 | ||
|
||
Fixed cli input as an package to actually work | ||
|
||
## v0.1 | ||
First release | ||
|
||
First release |
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.