-
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.
feat(#16): Use taskfile to automate scripts. Aditionally:
- Upgrade to Python 3.11 - Updated libraries - Removed old recsys gym - Replaced old pre-commit hooks with ruff - Replaced gym with gymnasium - Replaced MIT license with GNU GPLv3 - Updated poetry
- Loading branch information
Lucas Farris
committed
May 15, 2024
1 parent
1315a66
commit d3a242f
Showing
75 changed files
with
5,419 additions
and
4,675 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 |
---|---|---|
|
@@ -2,42 +2,43 @@ name: Master Deploy | |
|
||
on: | ||
push: | ||
branches: | ||
- 'master' | ||
branches: | ||
- "master" | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
deploy: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
runs-on: ubuntu-24.04 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: '3.7' | ||
- name: Install dependencies and test | ||
run: | | ||
python -m pip install pip==22.2.2 setuptools==65.3.0 wheel==0.37.1 | ||
pip install poetry==1.1.15 | ||
poetry install | ||
poetry run coverage run -m pytest | ||
- name: Generate Documentation | ||
run: | | ||
poetry run coverage html -d docs/coverage | ||
poetry run pdoc --html --force deeprecsys -o docs/api | ||
- name: Version Bump | ||
run: | | ||
poetry version patch | ||
git config --global user.name 'Github Actions' | ||
git config --global user.email '[email protected]' | ||
git commit -am "Bump to version $(poetry version -s)" | ||
git push | ||
- name: Build package and publish | ||
run: | | ||
poetry build | ||
poetry config pypi-token.pypi ${{ secrets.PYPI_KEY }} | ||
poetry publish | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: "3.11" | ||
- name: Install Task | ||
uses: arduino/setup-task@v2 | ||
with: | ||
version: 3.37.1 | ||
- name: Install dependencies and test | ||
run: | | ||
task setup | ||
task test | ||
- name: Generate Documentation | ||
run: | | ||
task docs | ||
- name: Version Bump | ||
run: | | ||
task bump | ||
- name: Build package and publish | ||
env: | ||
PYPI_KEY: ${{ secrets.PYPI_KEY }} | ||
run: | | ||
task publish | ||
- name: Publish Release | ||
env: | ||
GH_TOKEN: ${{ github.token }} | ||
REPO_NAME: ${{ github.repository }} | ||
TAG: $(task version) | ||
run: gh release create "$TAG" --repo="$REPO_NAME" --title="$TAG" --generate-notes |
Empty file.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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.