Skip to content

Commit 3178370

Browse files
authored
ci: manually install pants (run-llama#17079)
1 parent cbf958f commit 3178370

File tree

2 files changed

+22
-18
lines changed

2 files changed

+22
-18
lines changed

.github/workflows/coverage.yml

+11-10
Original file line numberDiff line numberDiff line change
@@ -23,28 +23,29 @@ jobs:
2323
CI: true
2424
shell: bash
2525
run: rm -rf /opt/hostedtoolcache/*
26+
2627
- uses: actions/checkout@v4
2728
with:
2829
fetch-depth: 0
29-
- name: update rustc
30-
run: rustup update stable
30+
3131
- name: Install Poetry
3232
run: pipx install poetry==${{ env.POETRY_VERSION }}
33+
3334
- name: Set up python ${{ matrix.python-version }}
3435
uses: actions/setup-python@v5
3536
with:
3637
python-version: ${{ matrix.python-version }}
37-
- uses: pantsbuild/actions/init-pants@v5-scie-pants
38-
with:
39-
# v0 makes it easy to bust the cache if needed
40-
# just increase the integer to start with a fresh cache
41-
gha-cache-key: v1-py${{ matrix.python_version }}
42-
named-caches-hash: v1-py${{ matrix.python_version }}
43-
pants-python-version: ${{ matrix.python-version }}
44-
pants-ci-config: pants.toml
38+
39+
- name: Install pants
40+
run: |
41+
curl --proto '=https' --tlsv1.2 -fsSLO https://static.pantsbuild.org/setup/get-pants.sh
42+
chmod +x get-pants.sh
43+
./get-pants.sh
44+
4545
- name: Check BUILD files
4646
run: |
4747
pants tailor --check :: -docs/::
48+
4849
- name: Run coverage checks on changed packages
4950
run: |
5051
# Get the changed files

.github/workflows/unit_test.yml

+11-8
Original file line numberDiff line numberDiff line change
@@ -23,26 +23,29 @@ jobs:
2323
CI: true
2424
shell: bash
2525
run: rm -rf /opt/hostedtoolcache/*
26+
2627
- uses: actions/checkout@v4
2728
with:
2829
fetch-depth: 0
29-
- name: update rustc
30-
run: rustup update stable
30+
3131
- name: Install Poetry
3232
run: pipx install poetry==${{ env.POETRY_VERSION }}
33+
3334
- name: Set up python ${{ matrix.python-version }}
3435
uses: actions/setup-python@v5
3536
with:
3637
python-version: ${{ matrix.python-version }}
37-
- uses: pantsbuild/actions/init-pants@v5-scie-pants
38-
with:
39-
# v0 makes it easy to bust the cache if needed
40-
# just increase the integer to start with a fresh cache
41-
named-caches-hash: v3-py${{ matrix.python_version }}-${{ hashFiles('./**/pyproject.toml') }}
42-
pants-ci-config: pants.toml
38+
39+
- name: Install pants
40+
run: |
41+
curl --proto '=https' --tlsv1.2 -fsSLO https://static.pantsbuild.org/setup/get-pants.sh
42+
chmod +x get-pants.sh
43+
./get-pants.sh
44+
4345
- name: Check BUILD files
4446
run: |
4547
pants tailor --check :: -docs/::
48+
4649
- name: Run testing
4750
env:
4851
CI: true

0 commit comments

Comments
 (0)