| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 2efdb7b commit 531be84
7 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -4,8 +4,6 @@ description: Install uv, configure the system python, and the package dependenci | |||
| 4 | 4 | inputs: | |
| 5 | 5 | uv-install-options: | |
| 6 | 6 | default: "" | |
| 7 | - uv-version: | ||
| 8 | - default: 0.9.16 | ||
| 9 | 7 | python-version: | |
| 10 | 8 | required: true | |
| 11 | 9 | cache-pre-commit: | |
@@ -17,16 +15,11 @@ runs: | |||
| 17 | 15 | steps: | |
| 18 | 16 | - name: Setup uv | |
| 19 | 17 | id: setup-uv | |
| 20 | - uses: astral-sh/setup-uv@v7 | ||
| 18 | + uses: astral-sh/setup-uv@d31148d669074a8d0a63714ba94f3201e7020bc3 # v8.3.0 | ||
| 21 | 19 | with: | |
| 22 | 20 | enable-cache: true | |
| 23 | - | ||
| 24 | - - name: Setup Python | ||
| 25 | - id: setup-python | ||
| 26 | - uses: actions/setup-python@v6 | ||
| 27 | - with: | ||
| 21 | + version-file: uv.lock | ||
| 28 | 22 | python-version: ${{ inputs.python-version }} | |
| 29 | - allow-prereleases: true | ||
| 30 | 23 | ||
| 31 | 24 | - name: Install Project Dependencies | |
| 32 | 25 | id: install-project-dependencies | |
@@ -44,7 +37,7 @@ runs: | |||
| 44 | 37 | - name: pre-commit Cache | |
| 45 | 38 | id: pre-commit-cache | |
| 46 | 39 | if: inputs.cache-pre-commit == 'true' | |
| 47 | - uses: actions/cache@v4 | ||
| 40 | + uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5 | ||
| 48 | 41 | with: | |
| 49 | 42 | path: ~/.cache/pre-commit/ | |
| 50 | - key: cache-${{ inputs.cache-version }}-${{ runner.os }}-${{ runner.arch }}-pre-commit-${{ steps.pre-commit-version.outputs.pre-commit-version }}-python-${{ inputs.python-version }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('.pre-commit-config.yaml') }} | ||
| 43 | + key: cache-${{ inputs.cache-version }}-${{ runner.os }}-${{ runner.arch }}-pre-commit-${{ steps.pre-commit-version.outputs.pre-commit-version }}-python-${{ inputs.python-version }}-${{ steps.setup-uv.outputs.python-version }}-${{ hashFiles('.pre-commit-config.yaml') }} | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -19,9 +19,6 @@ concurrency: | |||
| 19 | 19 | group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
| 20 | 20 | cancel-in-progress: true | |
| 21 | 21 | ||
| 22 | - env: | ||
| 23 | - UV_VERSION: 0.9.16 | ||
| 24 | - | ||
| 25 | 22 | jobs: | |
| 26 | 23 | lint: | |
| 27 | 24 | name: Perform Lint Checks | |
@@ -32,15 +29,14 @@ jobs: | |||
| 32 | 29 | steps: | |
| 33 | 30 | - name: Checkout Source Files | |
| 34 | 31 | id: checkout | |
| 35 | - uses: actions/checkout@v6 | ||
| 32 | + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 | ||
| 36 | 33 | ||
| 37 | 34 | - name: Setup Environment | |
| 38 | 35 | id: setup-environment | |
| 39 | 36 | uses: ./.github/actions/setup | |
| 40 | 37 | with: | |
| 41 | 38 | python-version: ${{ matrix.python-version }} | |
| 42 | 39 | cache-pre-commit: true | |
| 43 | - uv-version: ${{ env.UV_VERSION }} | ||
| 44 | 40 | uv-install-options: --all-extras | |
| 45 | 41 | ||
| 46 | 42 | - name: Run pre-commit Checks | |
@@ -66,24 +62,27 @@ jobs: | |||
| 66 | 62 | steps: | |
| 67 | 63 | - name: Checkout Source Files | |
| 68 | 64 | id: checkout | |
| 69 | - uses: actions/checkout@v6 | ||
| 65 | + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 | ||
| 70 | 66 | ||
| 71 | 67 | - name: Setup Environment | |
| 72 | 68 | id: setup-environment | |
| 73 | 69 | uses: ./.github/actions/setup | |
| 74 | 70 | with: | |
| 75 | 71 | python-version: ${{ matrix.python-version }} | |
| 76 | - uv-version: ${{ env.UV_VERSION }} | ||
| 77 | 72 | uv-install-options: ${{ matrix.extras == true && '--all-extras' || '' }} | |
| 78 | 73 | ||
| 79 | 74 | - name: Run PyTests with Code Coverage | |
| 80 | 75 | id: run-pytests-with-code-coverage | |
| 81 | 76 | shell: bash | |
| 82 | 77 | run: | | |
| 83 | - uv run pytest -n auto --cov kasa --cov-report xml | ||
| 78 | + if [[ "${{ runner.os }}" == "Windows" ]]; then | ||
| 79 | + uv run pytest -n0 --cov kasa --cov-report xml | ||
| 80 | + else | ||
| 81 | + uv run pytest -n auto --cov kasa --cov-report xml | ||
| 82 | + fi | ||
| 84 | 83 | ||
| 85 | 84 | - name: Upload Code Coverage to Codecov | |
| 86 | 85 | id: upload-code-coverage-to-codecov | |
| 87 | - uses: codecov/codecov-action@v5 | ||
| 86 | + uses: codecov/codecov-action@57e3a136b779b570ffcdbf80b3bdc90e7fab3de2 # v6.0.0 | ||
| 88 | 87 | with: | |
| 89 | 88 | token: ${{ secrets.CODECOV_TOKEN }} | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -24,6 +24,8 @@ jobs: | |||
| 24 | 24 | analyze: | |
| 25 | 25 | name: Analyze | |
| 26 | 26 | runs-on: ubuntu-latest | |
| 27 | + env: | ||
| 28 | + CODEQL_ACTION_FILE_COVERAGE_ON_PRS: true | ||
| 27 | 29 | permissions: | |
| 28 | 30 | actions: read | |
| 29 | 31 | contents: read | |
@@ -37,14 +39,14 @@ jobs: | |||
| 37 | 39 | steps: | |
| 38 | 40 | - name: Checkout Source Files | |
| 39 | 41 | id: checkout | |
| 40 | - uses: actions/checkout@v6 | ||
| 42 | + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 | ||
| 41 | 43 | ||
| 42 | 44 | - name: Initialize CodeQL | |
| 43 | 45 | id: init-codeql | |
| 44 | - uses: github/codeql-action/init@v4 | ||
| 46 | + uses: github/codeql-action/init@c10b8064de6f491fea524254123dbe5e09572f13 # v4 | ||
| 45 | 47 | with: | |
| 46 | 48 | languages: ${{ matrix.language }} | |
| 47 | 49 | ||
| 48 | 50 | - name: Perform CodeQL Analysis | |
| 49 | 51 | id: perform-codeql-analysis | |
| 50 | - uses: github/codeql-action/analyze@v4 | ||
| 52 | + uses: github/codeql-action/analyze@c10b8064de6f491fea524254123dbe5e09572f13 # v4 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -6,7 +6,6 @@ on: | |||
| 6 | 6 | types: [published] | |
| 7 | 7 | ||
| 8 | 8 | env: | |
| 9 | - UV_VERSION: 0.9.16 | ||
| 10 | 9 | PYTHON_VERSION: 3.13 | |
| 11 | 10 | ||
| 12 | 11 | jobs: | |
@@ -18,16 +17,13 @@ jobs: | |||
| 18 | 17 | steps: | |
| 19 | 18 | - name: Checkout Source Files | |
| 20 | 19 | id: checkout | |
| 21 | - uses: actions/checkout@v6 | ||
| 20 | + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 | ||
| 22 | 21 | ||
| 23 | 22 | - name: Setup uv | |
| 24 | 23 | id: setup-uv | |
| 25 | - uses: astral-sh/setup-uv@v7 | ||
| 26 | - | ||
| 27 | - - name: Setup Python | ||
| 28 | - id: setup-python | ||
| 29 | - uses: actions/setup-python@v6 | ||
| 24 | + uses: astral-sh/setup-uv@d31148d669074a8d0a63714ba94f3201e7020bc3 # v8.3.0 | ||
| 30 | 25 | with: | |
| 26 | + version-file: uv.lock | ||
| 31 | 27 | python-version: ${{ env.PYTHON_VERSION }} | |
| 32 | 28 | ||
| 33 | 29 | - name: Build Packages | |
@@ -37,4 +33,4 @@ jobs: | |||
| 37 | 33 | ||
| 38 | 34 | - name: Publish Release on PyPI | |
| 39 | 35 | id: publish-release-on-pypi | |
| 40 | - uses: pypa/gh-action-pypi-publish@release/v1 | ||
| 36 | + uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e # release/v1 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -13,7 +13,7 @@ jobs: | |||
| 13 | 13 | steps: | |
| 14 | 14 | - name: Stale Issues and PRs Policy | |
| 15 | 15 | id: stale-issues-and-prs-policy | |
| 16 | - uses: actions/stale@v10 | ||
| 16 | + uses: actions/stale@b5d41d4e1d5dceea10e7104786b73624c18a190f # v10 | ||
| 17 | 17 | with: | |
| 18 | 18 | repo-token: ${{ github.token }} | |
| 19 | 19 | days-before-stale: 90 | |
@@ -46,7 +46,7 @@ jobs: | |||
| 46 | 46 | ||
| 47 | 47 | - name: needs-more-information and waiting-for-reporter Stale Issues Policy | |
| 48 | 48 | id: specific-stale-issues-policy | |
| 49 | - uses: actions/stale@v10 | ||
| 49 | + uses: actions/stale@b5d41d4e1d5dceea10e7104786b73624c18a190f # v10 | ||
| 50 | 50 | with: | |
| 51 | 51 | repo-token: ${{ github.token }} | |
| 52 | 52 | only-labels: "needs-more-information,waiting-for-reporter" | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -62,6 +62,7 @@ dev-dependencies = [ | |||
| 62 | 62 | "pytest-xdist>=3.6.1", | |
| 63 | 63 | "pytest-socket>=0.7.0", | |
| 64 | 64 | "ruff>=0.9.0", | |
| 65 | + "uv>=0.11.26", | ||
| 65 | 66 | ] | |
| 66 | 67 | ||
| 67 | 68 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments