From 8cb07ac9d4f35df4398808b6470a37c87c657742 Mon Sep 17 00:00:00 2001 From: mjwen Date: Sat, 16 Dec 2023 22:02:21 -0600 Subject: [PATCH] Use kim-api in publish --- .github/workflows/publish.yml | 12 +++++++++--- devtools/update_version.py | 3 +++ 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 75bb80b..c757082 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -11,10 +11,16 @@ jobs: steps: - uses: actions/checkout@v4 - - name: Set up Python - uses: actions/setup-python@v4 + - name: Set up micromamba + uses: mamba-org/setup-micromamba@v1.7.3 with: - python-version: "3.x" + # the create command looks like this: + # `micromamba create -n test-env python=` + environment-name: test-env + cache-environment: true + create-args: >- + python=3.10 + kim-api=2.3.0 - name: Install dependencies run: | diff --git a/devtools/update_version.py b/devtools/update_version.py index d5d1bdf..bd4106f 100644 --- a/devtools/update_version.py +++ b/devtools/update_version.py @@ -50,3 +50,6 @@ def update_version(version, path, key, in_quotes=False, extra_space=False): path = kimpy_dir / ".github/workflows/testing.yml" update_version(api_v, path, "kim-api", in_quotes=False) + + path = kimpy_dir / ".github/workflows/publish.yml" + update_version(api_v, path, "kim-api", in_quotes=False)