ci(github): split documentation tests into a separate job
This commit is contained in:
23
.github/workflows/test.yml
vendored
23
.github/workflows/test.yml
vendored
@@ -6,10 +6,6 @@ jobs:
|
|||||||
test:
|
test:
|
||||||
name: Test
|
name: Test
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container:
|
|
||||||
image: xd009642/tarpaulin
|
|
||||||
# https://github.com/xd009642/tarpaulin#github-actions
|
|
||||||
options: --security-opt seccomp=unconfined
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
@@ -19,10 +15,6 @@ jobs:
|
|||||||
toolchain: 1.76.0
|
toolchain: 1.76.0
|
||||||
- name: Install cargo-llvm-cov
|
- name: Install cargo-llvm-cov
|
||||||
uses: taiki-e/install-action@cargo-llvm-cov
|
uses: taiki-e/install-action@cargo-llvm-cov
|
||||||
- name: Run documentation tests
|
|
||||||
run: make test-doc
|
|
||||||
env:
|
|
||||||
MISTRAL_API_KEY: ${{ secrets.MISTRAL_API_KEY }}
|
|
||||||
- name: Run tests (with coverage)
|
- name: Run tests (with coverage)
|
||||||
run: cargo llvm-cov --lcov --output-path ./lcov.info
|
run: cargo llvm-cov --lcov --output-path ./lcov.info
|
||||||
env:
|
env:
|
||||||
@@ -33,3 +25,18 @@ jobs:
|
|||||||
fail_ci_if_error: true
|
fail_ci_if_error: true
|
||||||
files: ./lcov.info
|
files: ./lcov.info
|
||||||
token: ${{ secrets.CODECOV_TOKEN }}
|
token: ${{ secrets.CODECOV_TOKEN }}
|
||||||
|
|
||||||
|
test_documentation:
|
||||||
|
name: Test Documentation
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
- name: Setup Rust
|
||||||
|
uses: actions-rs/toolchain@v1
|
||||||
|
with:
|
||||||
|
toolchain: 1.76.0
|
||||||
|
- name: Run documentation tests
|
||||||
|
run: make test-doc
|
||||||
|
env:
|
||||||
|
MISTRAL_API_KEY: ${{ secrets.MISTRAL_API_KEY }}
|
||||||
|
|||||||
Reference in New Issue
Block a user