Skip to content

Commit

Permalink
Use UV in CI (#83)
Browse files Browse the repository at this point in the history
  • Loading branch information
pederhan authored Sep 3, 2024
1 parent 9970416 commit 8600153
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 14 deletions.
19 changes: 5 additions & 14 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,23 +14,14 @@ jobs:
- '3.10'
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Cache pip
uses: actions/cache@v2
with:
path: ~/.cache/pip
key: v1-pip-${{ runner.os }}-${{ matrix.python-version }}-${{ hashFiles('setup.cfg') }}
restore-keys: |
v1-pip-${{ runner.os }}-${{ matrix.python-version }}
v1-pip-${{ runner.os }}
v1-pip-
uses: actions/checkout@v4
- name: Install Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Update pip
run: python -m pip install --upgrade pip
- name: Install uv
uses: hynek/setup-cached-uv@v2
- name: Install Hatch
run: pip install hatch
run: uv pip install --system hatch
- name: Run tests
run: hatch run test -vv
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ zac = "zabbix_auto_config:main"
path = "zabbix_auto_config/__about__.py"

[tool.hatch.envs.default]
installer = "uv"
dependencies = ["zabbix-auto-config[test]"]

[tool.hatch.envs.default.scripts]
Expand Down

0 comments on commit 8600153

Please sign in to comment.