diff --git a/.github/workflows/cd.yaml b/.github/workflows/cd.yaml index 990da5b7..34df0bfd 100644 --- a/.github/workflows/cd.yaml +++ b/.github/workflows/cd.yaml @@ -2,9 +2,11 @@ name: CD on: - push: + pull_request: branches: - - main + # push: + # branches: + # - main permissions: id-token: write @@ -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: @@ -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 }} 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",