Skip to content

Conversation

@hekt
Copy link
Owner

@hekt hekt commented Jun 7, 2025

Summary

  • add a simple pytest that loads .config/karabiner/karabiner.json and .config/starship.toml
  • configure GitHub Actions workflow to run tests

Testing

  • pytest -v

https://chatgpt.com/codex/tasks/task_e_6843c1a65f10832badb61d0abc18efbf

@hekt hekt requested a review from Copilot June 7, 2025 04:46
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds basic tests to verify that JSON and TOML configuration files can be parsed and sets up a GitHub Actions workflow to run these tests automatically.

  • Introduces a pytest in tests/test_configs.py that loads Karabiner JSON and Starship TOML files.
  • Adds a new GitHub Actions workflow (.github/workflows/test.yml) to install dependencies and run pytest on pull requests and pushes.

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
tests/test_configs.py New test to load and parse JSON and TOML config files
.github/workflows/test.yml CI workflow to install Python dependencies and run tests

pull_request:
push:
branches:
- master
Copy link

Copilot AI Jun 7, 2025

Choose a reason for hiding this comment

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

The workflow is set to trigger on pushes to 'master', but the repository's default branch is 'main' (per your index). Update this to 'main' or use the default branch name to ensure CI runs as expected.

Suggested change
- master
- main

Copilot uses AI. Check for mistakes.
hekt and others added 2 commits June 7, 2025 13:54
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@hekt hekt merged commit 4441fe8 into master Jun 7, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant