From ba25754eaac7b5064e5ed7e6d69d54f0c290c043 Mon Sep 17 00:00:00 2001 From: ioangatop Date: Tue, 1 Oct 2024 11:24:02 +0200 Subject: [PATCH] fix ci --- .github/workflows/cd.yaml | 41 ++++++++++++++++++++++----------------- pyproject.toml | 2 +- 2 files changed, 24 insertions(+), 19 deletions(-) diff --git a/.github/workflows/cd.yaml b/.github/workflows/cd.yaml index 990da5b7..285c57f8 100644 --- a/.github/workflows/cd.yaml +++ b/.github/workflows/cd.yaml @@ -2,6 +2,8 @@ name: CD on: + pull_request: + branches: push: branches: - main @@ -29,23 +31,26 @@ jobs: git config user.email "action@github.com" git config user.name "GitHub Action" - name: Bumping version + uses: actions/checkout@v3 run: | 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 . + git commit -m "Bumping minor version" + git push origin ioannis@dev + # - 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 }} diff --git a/pyproject.toml b/pyproject.toml index b1fc27a1..b8965116 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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",