Skip to content

Commit

Permalink
Merge pull request #1 from grafana/add-rust-workflow
Browse files Browse the repository at this point in the history
Add Rust CI workflow
  • Loading branch information
sd2k authored Jun 1, 2023
2 parents 06ae2a2 + e7ec9fa commit c2db2fe
Show file tree
Hide file tree
Showing 3 changed files with 72 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# maturin generate-ci github -m crates/pyaugurs/Cargo.toml
#
name: python
name: Python

on:
push:
Expand Down
69 changes: 69 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
name: Rust

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

env:
CARGO_TERM_COLOR: always

jobs:
check:
name: Check
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2

- name: Install Rust toolchain
uses: moonrepo/setup-rust@v0

- name: Run cargo check
run: cargo check

test:
name: Tests
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2

- name: Install Rust toolchain
uses: moonrepo/setup-rust@v0
with:
bins: cargo-nextest

- name: Run cargo nextest
run: cargo nextest run

fmt:
name: Rustfmt
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2

- name: Install Rust toolchain
uses: moonrepo/setup-rust@v0
with:
components: rustfmt

- name: Run cargo fmt
run: cargo fmt --all -- --check

clippy:
name: Clippy
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2

- name: Install Rust toolchain
uses: moonrepo/setup-rust@v0
with:
components: clippy

- name: Run cargo clippy
run: cargo clippy -- -D warnings
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# augurs - a time series framework for Rust

[![build-python](https://github.com/grafana/augurs/actions/workflows/python.yml/badge.svg)](https://github.com/grafana/augurs/actions/workflows/python.yml)
[![Python](https://github.com/grafana/augurs/actions/workflows/python.yml/badge.svg)](https://github.com/grafana/augurs/actions/workflows/python.yml)
[![Rust](https://github.com/grafana/augurs/actions/workflows/rust.yml/badge.svg)](https://github.com/grafana/augurs/actions/workflows/rust.yml)

This repository contains `augurs`, a time series framework built in Rust.
It aims to provide some useful primitives for working with time series,
Expand Down

0 comments on commit c2db2fe

Please sign in to comment.