Skip to content

Commit 7fb27d9

Browse files
committed
Fix CI: replace third-party actions with pip installs per org policy
1 parent f861bc8 commit 7fb27d9

2 files changed

Lines changed: 11 additions & 16 deletions

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,10 @@ jobs:
2222
- name: Authenticate with Artifactory
2323
if: ${{ !github.event.pull_request.head.repo.fork }}
2424
uses: ./.github/actions/artifactory-oidc
25-
- uses: astral-sh/setup-uv@0c5e2b8115b80b4c7c5ddf6ffdd634974642d182 # v5
26-
with:
27-
version: "0.9.26"
2825
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
2926
with:
3027
python-version: "3.11"
28+
- run: pip install uv==0.9.26
3129
- run: uv sync --frozen --all-extras
3230
- run: uv run ruff check .
3331
- run: uv run ruff format --check .
@@ -44,12 +42,10 @@ jobs:
4442
- name: Authenticate with Artifactory
4543
if: ${{ !github.event.pull_request.head.repo.fork }}
4644
uses: ./.github/actions/artifactory-oidc
47-
- uses: astral-sh/setup-uv@0c5e2b8115b80b4c7c5ddf6ffdd634974642d182 # v5
48-
with:
49-
version: "0.9.26"
5045
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
5146
with:
5247
python-version: ${{ matrix.python-version }}
48+
- run: pip install uv==0.9.26
5349
- run: uv sync --frozen --all-extras
5450
- run: uv run pytest
5551

@@ -61,12 +57,10 @@ jobs:
6157
- name: Authenticate with Artifactory
6258
if: ${{ !github.event.pull_request.head.repo.fork }}
6359
uses: ./.github/actions/artifactory-oidc
64-
- uses: astral-sh/setup-uv@0c5e2b8115b80b4c7c5ddf6ffdd634974642d182 # v5
65-
with:
66-
version: "0.9.26"
6760
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
6861
with:
6962
python-version: "3.11"
63+
- run: pip install uv==0.9.26
7064
- name: Build package
7165
run: uv build
7266
- name: Verify installable

.github/workflows/deploy.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,10 @@ jobs:
2424
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
2525
- name: Authenticate with Artifactory
2626
uses: ./.github/actions/artifactory-oidc
27-
- uses: astral-sh/setup-uv@0c5e2b8115b80b4c7c5ddf6ffdd634974642d182 # v5
28-
with:
29-
version: "0.9.26"
3027
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
3128
with:
3229
python-version: ${{ matrix.python-version }}
30+
- run: pip install uv==0.9.26
3331
- run: uv sync --frozen --all-extras
3432
- run: uv run pytest
3533

@@ -47,12 +45,10 @@ jobs:
4745
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
4846
- name: Authenticate with Artifactory
4947
uses: ./.github/actions/artifactory-oidc
50-
- uses: astral-sh/setup-uv@0c5e2b8115b80b4c7c5ddf6ffdd634974642d182 # v5
51-
with:
52-
version: "0.9.26"
5348
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
5449
with:
5550
python-version: "3.12"
51+
- run: pip install uv==0.9.26
5652

5753
- name: Validate tag format and version match
5854
run: |
@@ -76,4 +72,9 @@ jobs:
7672
run: uv build
7773

7874
- name: Publish to PyPI
79-
uses: pypa/gh-action-pypi-publish@cef221092ed1bacb1cc03d23a2d87d1d172e277b # v1.14.0
75+
run: |
76+
pip install twine
77+
twine upload --repository pypi dist/*
78+
env:
79+
TWINE_USERNAME: __token__
80+
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)