Skip to content

Commit

Permalink
Merge pull request #34 from ajalab/ci-github-actions
Browse files Browse the repository at this point in the history
Add GitHub Actions CI for verification
  • Loading branch information
ajalab authored Jan 18, 2025
2 parents 6306ee1 + 83602d6 commit 608e103
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 16 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/verify.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Verify

on:
push:
branches: [master]
pull_request:
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

env:
RUSTFLAGS: "-Dwarnings"
CARGO_TERM_COLOR: always

jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- run: cargo test

clippy:
name: Clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy
- run: cargo clippy --all-targets --all-features

12 changes: 0 additions & 12 deletions .travis.yml

This file was deleted.

3 changes: 0 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ license = "MIT OR Apache-2.0"
keywords = ["fm-index", "self-index", "succinct", "search", "vers"]
categories = ["data-structures", "algorithms"]

[badges]
travis-ci = { repository = "ajalab/fm-index" }

[dependencies]
vers-vecs = { version = "1.5.1", features = ["serde"] }
num-traits = "0.2"
Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# fm-index

[![Build Status](https://travis-ci.com/ajalab/fm-index.svg?branch=master)](https://travis-ci.org/ajalab/fm-index)
[![Crate](https://img.shields.io/crates/v/fm-index.svg)](https://crates.io/crates/fm-index)
[![Doc](https://docs.rs/fm-index/badge.svg)](https://docs.rs/fm-index)

Expand Down
1 change: 1 addition & 0 deletions benches/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ pub fn binary_text_set(len: usize, prob: f64) -> (Vec<u8>, impl Converter<u8>) {
(text, converter)
}

#[allow(dead_code)] // False positive?
pub fn binary_patterns(m: usize) -> Vec<String> {
let mut patterns: Vec<String> = vec!["".to_owned()];
for _ in 0..m {
Expand Down

0 comments on commit 608e103

Please sign in to comment.