-
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 5fef846
Showing
76 changed files
with
5,462 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 |
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,43 @@ | ||
# Simple workflow for deploying static content to GitHub Pages | ||
name: Deploy static content to Pages | ||
|
||
on: | ||
# Runs on pushes targeting the default branch | ||
push: | ||
branches: ["master"] | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages | ||
permissions: | ||
contents: read | ||
pages: write | ||
id-token: write | ||
|
||
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. | ||
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. | ||
concurrency: | ||
group: "pages" | ||
cancel-in-progress: false | ||
|
||
jobs: | ||
# Single deploy job since we're just deploying | ||
deploy: | ||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Setup Pages | ||
uses: actions/configure-pages@v5 | ||
- name: Upload artifact | ||
uses: actions/upload-pages-artifact@v3 | ||
with: | ||
# Upload entire repository | ||
path: '.' | ||
- name: Deploy to GitHub Pages | ||
id: deployment | ||
uses: actions/deploy-pages@v4 |
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.