Skip to content

Commit

Permalink
Release v0.2.10 (#648)
Browse files Browse the repository at this point in the history
* Release v0.2.10

* Fix docs release to run notebooks

* Fix docs release workflow to also run when release PR is updated

* Add imblearn to docs deps

* Fix docs release worklfow to run on cyclops runner

* Remove pandoc stuff and kaggle since it runs on cyclops runner
  • Loading branch information
amrit110 committed Jun 27, 2024
1 parent c7d635e commit 03a64e7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 20 deletions.
23 changes: 5 additions & 18 deletions .github/workflows/docs_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ on:
- '**.rst'
- '**.md'
- docs/cyclops-webpage
types: [labeled, closed]
types: [labeled, closed, synchronize]

jobs:
release-build:
if: contains(github.event.pull_request.labels.*.name, 'release') || (github.event.action == 'closed' && github.event.pull_request.merged == true)
runs-on: ubuntu-latest
if: contains(github.event.pull_request.labels.*.name, 'release') || (github.event.action == 'closed' && github.event.pull_request.merged == true) || (github.event.action == 'synchronize' && contains(github.event.pull_request.labels.*.name, 'release'))
runs-on: [self-hosted, db, cyclops]
steps:
- uses: actions/[email protected]
with:
Expand All @@ -33,28 +33,15 @@ jobs:
with:
python-version: '3.10'
cache: 'poetry'
- name: Install dependencies, build docs without running notebooks
env:
KAGGLE_USERNAME: ${{ secrets.KAGGLE_USERNAME }}
KAGGLE_KEY: ${{ secrets.KAGGLE_KEY }}
- name: Install dependencies, build docs with running notebooks
run: |
python3 -m pip install --upgrade pip && python3 -m pip install poetry
poetry env use '3.10'
source $(poetry env info --path)/bin/activate
poetry install --with docs,test --all-extras
# Set up Kaggle credentials
mkdir -p ~/.kaggle
echo "{\"username\":\"$KAGGLE_USERNAME\",\"key\":\"$KAGGLE_KEY\"}" > ~/.kaggle/kaggle.json
chmod 600 ~/.kaggle/kaggle.json
# Install Pandoc
PANDOC_VERSION="2.19"
curl -sLo- "https://github.com/jgm/pandoc/releases/download/${PANDOC_VERSION}/pandoc-${PANDOC_VERSION}-linux-amd64.tar.gz" | tar xzf - --strip-components 2 -C /usr/local/bin --exclude="share"
cd docs
rm -rf source/reference/api/_autosummary
make html
make html-with-notebooks
- name: Set up Node.js
uses: actions/[email protected]
with:
Expand Down
2 changes: 1 addition & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "pycyclops"
version = "0.2.9"
version = "0.2.10"
description = "Framework for healthcare ML implementation"
authors = ["Vector AI Engineering <[email protected]>"]
license = "Apache-2.0"
Expand Down Expand Up @@ -123,6 +123,7 @@ nbsphinx = "^0.9.3"
ipython = "^8.8.0"
ipykernel = "^6.23.0"
kaggle = "^1.5.13"
imbalanced-learn = "^0.12.0"
furo = "^2024.01.29"

[tool.poetry.group.dev]
Expand Down

0 comments on commit 03a64e7

Please sign in to comment.