Skip to content

Commit e882e13

Browse files
authored
chore: updating actions/checkout and adding setup-uv instead of using pip (#614)
1 parent 365a0c2 commit e882e13

File tree

18 files changed

+63
-41
lines changed

18 files changed

+63
-41
lines changed

.github/workflows/bandit.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,11 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- uses: actions/checkout@v6
15+
- name: Install uv
16+
uses: astral-sh/setup-uv@v7
17+
with:
18+
activate-environment: "true"
19+
github-token: ${{ github.token }}
1520
- name: Run bandit
1621
run: |
17-
python --version
18-
python -m pip install --quiet --no-cache-dir --upgrade uv
1922
uv run bandit -r $(basename $(pwd) | sed -E 's/-/_/')

.github/workflows/build_container.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
name: 'Build container'
2+
name: "Build container"
33
"on":
44
pull_request:
55
push:
@@ -14,16 +14,11 @@ jobs:
1414
steps:
1515
- name: Checkout
1616
uses: actions/checkout@v6
17-
18-
- name: Set up Python
19-
uses: actions/setup-python@v6
20-
with:
21-
python-version: '3.12'
2217
- name: Set up QEMU
2318
uses: docker/setup-qemu-action@v3
2419
- name: Set up Docker Buildx
2520
uses: docker/setup-buildx-action@v3
26-
- # https://github.com/docker/login-action/#github-container-registry
21+
- # https://github.com/docker/login-action/#github-container-registry
2722
name: Login to GitHub Container Registry
2823
uses: docker/login-action@v3
2924
with:

.github/workflows/codeql-analysis.yml.disabled

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838

3939
steps:
4040
- name: Checkout repository
41-
uses: actions/checkout@v5
41+
uses: actions/checkout@v6
4242

4343
# Initializes the CodeQL tools for scanning.
4444
- name: Initialize CodeQL

.github/workflows/mypy.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,11 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- uses: actions/checkout@v6
15+
- name: Install uv
16+
uses: astral-sh/setup-uv@v7
17+
with:
18+
activate-environment: "true"
19+
github-token: ${{ github.token }}
1520
- name: Running mypy
1621
run: |
17-
python -m pip install --quiet --no-cache-dir --upgrade uv
1822
uv run mypy --strict $(basename $(pwd)) tests

.github/workflows/pylint.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
name: pylint
2+
name: Python Linting
33

44
"on":
55
push:
@@ -12,8 +12,11 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- uses: actions/checkout@v6
15-
- name: Running pylint
15+
- name: Install uv
16+
uses: astral-sh/setup-uv@v7
17+
with:
18+
activate-environment: "true"
19+
github-token: ${{ github.token }}
20+
- name: Running ruff
1621
run: |
17-
python --version
18-
python -m pip install --quiet --no-cache-dir --upgrade uv
1922
uv run ruff check $(basename $(pwd)) tests

.github/workflows/pytest.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,11 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- uses: actions/checkout@v6
15+
- name: Install uv
16+
uses: astral-sh/setup-uv@v7
17+
with:
18+
activate-environment: "true"
19+
github-token: ${{ github.token }}
1520
- name: Running pytest
1621
run: |
17-
python --version
18-
python -m pip install --quiet --no-cache-dir --upgrade uv
1922
uv run python -m pytest -m 'not network'

github_linter/fixes/dependabot/dependabot_auto_merge.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,8 @@ jobs:
1919
github-token: "${{ secrets.GITHUB_TOKEN }}"
2020
alert-lookup: true
2121
compat-lookup: true
22-
- uses: actions/checkout@v5
22+
- uses: actions/checkout@v6
2323
- name: Approve a PR if not already approved
24-
2524
run: |
2625
# sets the upstream metadata for `gh pr status`
2726
gh pr checkout "$PR_URL"

github_linter/fixes/github_actions/dependency_review.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- name: "Checkout Repository"
16-
uses: actions/checkout@v5
16+
uses: actions/checkout@v6
1717
- name: "Dependency Review"
1818
uses: actions/dependency-review-action@v3

github_linter/fixes/github_actions/templates/Dockerfile/build_container.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
runs-on: ubuntu-latest
2424
steps:
2525
- name: Checkout
26-
uses: actions/checkout@v5
26+
uses: actions/checkout@v6
2727
- name: Setup sccache
2828
uses: mozilla-actions/[email protected]
2929
- name: Set up QEMU

github_linter/fixes/github_actions/templates/Python/bandit.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,12 @@ jobs:
1111
bandit:
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v5
14+
- uses: actions/checkout@v6
15+
- name: Install uv
16+
uses: astral-sh/setup-uv@v7
17+
with:
18+
activate-environment: "true"
19+
github-token: ${{ github.token }}
1520
- name: Run bandit
1621
run: |
17-
python --version
18-
python -m pip install --quiet --no-cache-dir --upgrade uv
1922
uv run bandit -r $(basename $(pwd) | sed -E 's/-/_/g'))

0 commit comments

Comments
 (0)