diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 3eacc0b..bfb3677 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -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 diff --git a/pyproject.toml b/pyproject.toml index a112bb5..a44f65f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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]