Skip to content

Commit

Permalink
Merge pull request #64 from twosigma/nightly
Browse files Browse the repository at this point in the history
run tests on nightly ... nightly
  • Loading branch information
leifwalsh authored May 3, 2023
2 parents c353205 + ac7c501 commit 9492a5d
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ on:
push:
branches: [main]
pull_request:
branches:
release:
types: [published]
schedule:
- cron: '15 23 * * *'

env:
CARGO_TERM_COLOR: always
Expand All @@ -18,6 +19,8 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: ${{ github.event.schedule && 'nightly' || 'stable' }}
- name: Build
run: cargo build --verbose
- name: Run tests
Expand All @@ -32,6 +35,8 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: ${{ github.event.schedule && 'nightly' || 'stable' }}
- name: Generate code coverage
run: cargo tarpaulin --all-features --workspace --timeout 120 --out Xml
- uses: codecov/codecov-action@v3
Expand All @@ -50,6 +55,8 @@ jobs:
apt-get -y install build-essential dpkg-dev ca-certificates sudo curl
apt-get -y build-dep .
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: ${{ github.event.schedule && 'nightly' || 'stable' }}
- name: Build
run: cargo build --verbose

Expand All @@ -59,6 +66,8 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: ${{ github.event.schedule && 'nightly' || 'stable' }}
- run: rustup component add clippy
- name: rust-clippy-check
uses: actions-rs/clippy-check@v1
Expand All @@ -80,6 +89,8 @@ jobs:
cd clone
apt-get build-dep -y .
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: ${{ github.event.schedule && 'nightly' || 'stable' }}
- name: Build package
run: |
debian/rules vendor
Expand Down

0 comments on commit 9492a5d

Please sign in to comment.