-
Notifications
You must be signed in to change notification settings - Fork 328
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
63 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,24 +3,24 @@ on: | |
pull_request: | ||
types: [opened, synchronize, reopened, ready_for_review] | ||
paths-ignore: | ||
- 'docs/**' | ||
- 'config/**' | ||
- '**.md' | ||
- '.dockerignore' | ||
- 'docker/**' | ||
- '.gitignore' | ||
- 'grafana/**' | ||
- "docs/**" | ||
- "config/**" | ||
- "**.md" | ||
- ".dockerignore" | ||
- "docker/**" | ||
- ".gitignore" | ||
- "grafana/**" | ||
push: | ||
branches: | ||
- main | ||
paths-ignore: | ||
- 'docs/**' | ||
- 'config/**' | ||
- '**.md' | ||
- '.dockerignore' | ||
- 'docker/**' | ||
- '.gitignore' | ||
- 'grafana/**' | ||
- "docs/**" | ||
- "config/**" | ||
- "**.md" | ||
- ".dockerignore" | ||
- "docker/**" | ||
- ".gitignore" | ||
- "grafana/**" | ||
workflow_dispatch: | ||
|
||
name: CI | ||
|
@@ -46,7 +46,7 @@ jobs: | |
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ windows-latest, ubuntu-20.04 ] | ||
os: [windows-latest, ubuntu-20.04] | ||
timeout-minutes: 60 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
@@ -58,7 +58,7 @@ jobs: | |
toolchain: ${{ env.RUST_TOOLCHAIN }} | ||
- name: Rust Cache | ||
uses: Swatinem/rust-cache@v2 | ||
with: | ||
with: | ||
# Shares across multiple jobs | ||
# Shares with `Clippy` job | ||
shared-key: "check-lint" | ||
|
@@ -77,7 +77,7 @@ jobs: | |
toolchain: stable | ||
- name: Rust Cache | ||
uses: Swatinem/rust-cache@v2 | ||
with: | ||
with: | ||
# Shares across multiple jobs | ||
shared-key: "check-toml" | ||
- name: Install taplo | ||
|
@@ -91,7 +91,7 @@ jobs: | |
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ ubuntu-20.04 ] | ||
os: [ubuntu-20.04] | ||
timeout-minutes: 60 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
@@ -127,7 +127,7 @@ jobs: | |
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ ubuntu-20.04 ] | ||
os: [ubuntu-20.04] | ||
timeout-minutes: 60 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
@@ -155,7 +155,7 @@ jobs: | |
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ ubuntu-20.04 ] | ||
os: [ubuntu-20.04] | ||
timeout-minutes: 60 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
@@ -195,7 +195,7 @@ jobs: | |
components: rustfmt | ||
- name: Rust Cache | ||
uses: Swatinem/rust-cache@v2 | ||
with: | ||
with: | ||
# Shares across multiple jobs | ||
shared-key: "check-rust-fmt" | ||
- name: Run cargo fmt | ||
|
@@ -217,7 +217,7 @@ jobs: | |
components: clippy | ||
- name: Rust Cache | ||
uses: Swatinem/rust-cache@v2 | ||
with: | ||
with: | ||
# Shares across multiple jobs | ||
# Shares with `Check` job | ||
shared-key: "check-lint" | ||
|
@@ -253,7 +253,7 @@ jobs: | |
- name: Install Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.10' | ||
python-version: "3.10" | ||
- name: Install PyArrow Package | ||
run: pip install pyarrow | ||
- name: Setup etcd server | ||
|
@@ -283,3 +283,43 @@ jobs: | |
flags: rust | ||
fail_ci_if_error: false | ||
verbose: true | ||
|
||
ci-test-on-windows: | ||
if: github.event.pull_request.draft == false | ||
runs-on: windows-latest | ||
timeout-minutes: 60 | ||
steps: | ||
- run: git config --global core.autocrlf false | ||
- uses: actions/[email protected] | ||
- uses: arduino/setup-protoc@v1 | ||
with: | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Install Rust toolchain | ||
uses: dtolnay/rust-toolchain@master | ||
with: | ||
toolchain: ${{ env.RUST_TOOLCHAIN }} | ||
components: llvm-tools-preview | ||
- name: Rust Cache | ||
uses: Swatinem/rust-cache@v2 | ||
- name: Install Cargo Nextest | ||
uses: taiki-e/install-action@nextest | ||
- name: Install Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.10" | ||
- name: Install PyArrow Package | ||
run: pip install pyarrow | ||
- name: Install WSL distribution | ||
uses: Vampire/setup-wsl@v2 | ||
with: | ||
distribution: Ubuntu-22.04 | ||
- name: Running tests | ||
run: cargo nextest run -F pyo3_backend,dashboard | ||
env: | ||
RUST_BACKTRACE: 1 | ||
CARGO_INCREMENTAL: 0 | ||
GT_S3_BUCKET: ${{ secrets.S3_BUCKET }} | ||
GT_S3_ACCESS_KEY_ID: ${{ secrets.S3_ACCESS_KEY_ID }} | ||
GT_S3_ACCESS_KEY: ${{ secrets.S3_ACCESS_KEY }} | ||
GT_S3_REGION: ${{ secrets.S3_REGION }} | ||
UNITTEST_LOG_DIR: "__unittest_logs" |