Skip to content

Commit 641c52d

Browse files
committed
Fix CI composite actions
1 parent 92f6220 commit 641c52d

File tree

4 files changed

+28
-14
lines changed

4 files changed

+28
-14
lines changed

.github/actions/common-setup/action.yml

+5
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,11 @@ runs:
4747
run: |
4848
rustup toolchain add --profile minimal stable --component clippy,rustfmt
4949
50+
- name: Install cargo-nextest
51+
uses: taiki-e/install-action@v2
52+
with:
53+
tool: nextest
54+
5055
- name: Cached cargo
5156
id: cached-cargo
5257
uses: actions/cache@v4

.github/actions/common-wheel-build/action.yml

+20-11
Original file line numberDiff line numberDiff line change
@@ -10,22 +10,22 @@ inputs:
1010
runs:
1111
using: "composite"
1212
steps:
13-
- name: Cached test data
14-
id: cached-testdata-large
15-
uses: actions/cache@v4
16-
with:
17-
path: tests/test_data/large
18-
key: ${{ runner.os }}-large-files-${{ hashFiles('tests/test_data/large/checksums.json') }}
19-
restore-keys: ${{ runner.os }}-large-files-
2013

21-
- name: Install cargo-nextest
22-
uses: taiki-e/install-action@v2
23-
with:
24-
tool: nextest
2514

15+
- name: Update version in pyproject.toml
16+
shell: bash
17+
run: |
18+
bash ./scripts/ci/update-pyproject-version.sh
19+
20+
- name: Generate updated lock file
21+
shell: bash
22+
run: poetry lock --no-update
23+
24+
# TODO: Temporarily clear all previous venvs
2625
- name: Build Python wheel
2726
shell: bash
2827
run: |
28+
poetry env remove --all
2929
poetry env use python${{ inputs.python-version }}
3030
poetry build --format wheel
3131
ls -lh dist/
@@ -37,3 +37,12 @@ runs:
3737
poetry export --with test --all-extras --format requirements.txt --output requirements-test.txt
3838
python -m pip install -r requirements-test.txt
3939
pip install "$(ls dist/*.whl)"
40+
41+
# TODO: Temporarily locate this here for now
42+
- name: Cached test data
43+
id: cached-testdata-large
44+
uses: actions/cache@v4
45+
with:
46+
path: tests/test_data/large
47+
key: ${{ runner.os }}-large-files-${{ hashFiles('tests/test_data/large/checksums.json') }}
48+
restore-keys: ${{ runner.os }}-large-files-

.github/workflows/build.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ jobs:
102102
POSTGRES_PASSWORD: pass
103103
POSTGRES_DATABASE: nautilus
104104

105-
- name: Run nautilus_core tests (with standard-precision)
105+
- name: Run Rust tests (with standard-precision)
106106
run: make cargo-test-standard-precision
107107

108108
- name: Build and install wheel
@@ -173,7 +173,7 @@ jobs:
173173
POSTGRES_PASSWORD: pass
174174
POSTGRES_DATABASE: nautilus
175175

176-
- name: Run nautilus_core tests
176+
- name: Run Rust tests
177177
run: make cargo-test
178178

179179
- name: Build and install wheel
@@ -220,7 +220,7 @@ jobs:
220220
with:
221221
python-version: ${{ matrix.python-version }}
222222

223-
- name: Run nautilus_core tests
223+
- name: Run Rust tests
224224
run: make cargo-test
225225

226226
- name: Build and install wheel

0 commit comments

Comments
 (0)