Skip to content

Commit c218a31

Browse files
do not run ignored test on pr; see #43
1 parent caee31b commit c218a31

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/rust.yml

+12
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,16 @@ jobs:
3030
with:
3131
crate: cargo-all-features
3232
- run: cargo test-all-features --release -- --include-ignored
33+
if: github.event_name != 'pull_request'
3334
env:
3435
RUST_BACKTRACE: 1
3536
RUST_TEST_THREADS: 1
3637
TG_BOT_KEY: ${{ secrets.TG_BOT_KEY }}
38+
- run: cargo test-all-features --release
39+
if: github.event_name == 'pull_request'
40+
env:
41+
RUST_BACKTRACE: 1
42+
RUST_TEST_THREADS: 1
3743

3844
test:
3945
strategy:
@@ -69,10 +75,16 @@ jobs:
6975
target
7076
key: "${{runner.os}} Rust ${{steps.rust-toolchain.outputs.cachekey}} Lock ${{hashFiles('Cargo.lock')}}"
7177
- run: cargo test --no-default-features --features ffmpeg,log -- --include-ignored
78+
if: github.event_name != 'pull_request'
7279
env:
7380
RUST_BACKTRACE: 1
7481
RUST_TEST_THREADS: 1
7582
TG_BOT_KEY: ${{ secrets.TG_BOT_KEY }}
83+
- run: cargo test --no-default-features --features ffmpeg,log
84+
if: github.event_name == 'pull_request'
85+
env:
86+
RUST_BACKTRACE: 1
87+
RUST_TEST_THREADS: 1
7688

7789
rustfmt:
7890
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)