Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix minor release CD #656

Open
wants to merge 19 commits into
base: main
Choose a base branch
from
52 changes: 31 additions & 21 deletions .github/workflows/cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@
name: CD

on:
push:
pull_request:
branches:
- main
# push:
# branches:
# - main

permissions:
id-token: write
Expand All @@ -14,7 +16,10 @@ jobs:
release-pypi:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4
- name: Checkout branch
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4
with:
token: ${{ secrets.GH_PAT }}
- name: Setting up PDM
uses: pdm-project/setup-pdm@568ddd69406b30de1774ec0044b73ae06e716aa4 # v4
with:
Expand All @@ -30,22 +35,27 @@ jobs:
git config user.name "GitHub Action"
- name: Bumping version
run: |
git fetch origin main
nox -s bump -- micro
git push origin main
- name: Build artifacts
run: |
nox -s build
- name: Test Build
run: |
python -m pip install dist/*.whl
eva --version
- name: Deploy Documentation
run: |
git fetch origin gh-pages:gh-pages
nox -s docs -- deploy --update-aliases main
git push origin gh-pages
- name: Publish package distributions to PyPI
run: nox -s publish -- --no-build
env:
PDM_PUBLISH_USERNAME: ${{ secrets.PYPI_USERNAME }}
PDM_PUBLISH_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
git add pyproject.toml
git commit -m "Bumping minor version"
git push -f origin HEAD:main
# git push -f origin HEAD:main
# git fetch origin
# - name: Build artifacts
# run: |
# nox -s build
# - name: Test Build
# run: |
# python -m pip install dist/*.whl
# eva --version
# - name: Deploy Documentation
# run: |
# git fetch origin gh-pages:gh-pages
# nox -s docs -- deploy --update-aliases main
# git push origin gh-pages
# - name: Publish package distributions to PyPI
# run: nox -s publish -- --no-build
# env:
# PDM_PUBLISH_USERNAME: ${{ secrets.PYPI_USERNAME }}
# PDM_PUBLISH_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ build-backend = "pdm.backend"

[project]
name = "kaiko-eva"
version = "0.1.0"
version = "0.1.1"
description = "Evaluation Framework for oncology foundation models."
keywords = [
"machine-learning",
Expand Down
Loading