test: Add test_dict_key.py #9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Python Tests | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Cache uv installation | |
uses: actions/cache@v4 | |
with: | |
path: | | |
~/.cargo/bin/uv | |
~/.cargo/registry | |
~/.cargo/git | |
key: ${{ runner.os }}-uv-${{ hashFiles('.github/workflows/test.yml') }} | |
- name: Install uv | |
if: steps.cache.outputs.cache-hit != 'true' | |
run: | | |
curl -LsSf https://astral.sh/uv/install.sh | sh | |
echo "$HOME/.cargo/bin" >> $GITHUB_PATH | |
- name: Run Tests | |
run: | | |
uv run --python 3.13 python -m unittest discover test -v | |