Skip to content

Commit ccf5a6c

Browse files
committed
fix(ci): correct YAML syntax in Python workflow job
- Move cache and cache-dependency-path options to actions/setup-python with block - Use requirements-lock.txt consistently for dependency installation - Remove duplicate pip install step - Clean up extraneous blank lines
1 parent c4415dc commit ccf5a6c

1 file changed

Lines changed: 4 additions & 9 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ jobs:
3737
~/.cargo/bin
3838
target
3939
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.toml') }}
40-
4140
restore-keys: ${{ runner.os }}-cargo-
4241

4342
- name: Install cargo-audit
@@ -54,7 +53,7 @@ jobs:
5453

5554
- name: tests
5655
run: cargo test --workspace -- --test-threads=1
57-
56+
5857
- name: Install cargo-llvm-cov
5958
uses: taiki-e/install-action@cargo-llvm-cov
6059

@@ -67,13 +66,11 @@ jobs:
6766
files: lcov.info
6867
token: ${{ secrets.CODECOV_TOKEN }}
6968

70-
7169
- name: Build documentation
7270
run: cargo doc --workspace --no-deps
7371
env:
7472
RUSTDOCFLAGS: -D warnings
7573

76-
7774
- name: Security audit
7875
run: cargo audit
7976

@@ -87,14 +84,12 @@ jobs:
8784
- name: Set up Python
8885
uses: actions/setup-python@v5
8986
with:
90-
python-version: '3.10'
91-
- name: Install Python dependencies
92-
run: pip install -r nexum_ai/requirements-lock.txt
87+
python-version: "3.10"
9388
cache: "pip"
94-
cache-dependency-path: nexum_ai/requirements.txt
89+
cache-dependency-path: nexum_ai/requirements-lock.txt
9590

9691
- name: Install dependencies
97-
run: pip install -r nexum_ai/requirements.txt
92+
run: pip install -r nexum_ai/requirements-lock.txt
9893

9994
- name: Byte-compile nexum_ai
10095
run: python -m compileall nexum_ai

0 commit comments

Comments
 (0)