Skip to content

Conversation

@ccjoel
Copy link
Contributor

@ccjoel ccjoel commented Aug 14, 2025

Updated to include 2 jobs:

  • A job runs beaker-ts/beaker-vue type checks when their source code is modified
  • Job to run beaker_kernel python tests when the lib/tests/pyproject files are modified

Left a comment on the PR on potentially not enabling the python tests yet, for our consideration.

@ccjoel
Copy link
Contributor Author

ccjoel commented Aug 14, 2025

Converting to non-draft PR to test ci job.

Edit: check passed, testing done. Will check feedback and we could add to project 👌🏼

@ccjoel ccjoel marked this pull request as ready for review August 14, 2025 15:17
@ccjoel ccjoel changed the title npm run type-check on PRs that modify beaker-vue source code. CI job to run ts type-check on PRs that modify beaker-vue source code. Aug 14, 2025
@ccjoel ccjoel changed the title CI job to run ts type-check on PRs that modify beaker-vue source code. CI job to run ts type-check on PRs that modify beaker-vue/beaker-ts source. CI Job for beaker_kernel python tests Aug 15, 2025
@ccjoel ccjoel requested a review from mattprintz August 15, 2025 16:32
</template>

<script setup lang="ts">
import { ref, shallowRef, computed, inject, getCurrentInstance, onBeforeMount, onBeforeUnmount, nextTick } from "vue";
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unused (lint fix)

const lintAnnotations = ref<{}[]>([]);
const emit = defineEmits([
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

emit constant unused (lint fix)

run: pip install hatch

- name: Run tests
run: hatch run test
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hatch run test is different than hatch test, in that it runs the [tool.hatch.envs.default.scripts] test script, which uses pytest, which we configured. hatch test uses the hatch runner with its own config (I think it potentially would try to capture more tests than whatever we configure under the test script section in pyproject.toml).

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can create a matrix to test both in 3.10 and 3.11, but for now I considered that unnecessary (not many tests yet, anyways)

@ccjoel
Copy link
Contributor Author

ccjoel commented Aug 18, 2025

I added a github workflow job for python tests- we may not want to enable it yet. Enabled for now.
It's a cost optimization issue- I don't know how often the python lint annotation files will be modified and we don't have any python other tests yet. Running those on any PR modifying beaker_kernel/lib may be wasteful.

There's an ~"enabled" or if: false flag that can be used in the workflow files if we want to check-in but not enable yet. There's also a button to disable a workflow on the repo github actions menu that we can use if we change our mind.

https://docs.github.com/en/actions/how-tos/manage-workflow-runs/disable-and-enable-workflows?apiVersion=2022-11-28

Under https://github.com/pricing/calculator , as an example:

Screenshot 2025-08-18 at 9 18 25 AM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants