Skip to content

Commit

Permalink
bump version and adjust CI guards (#1039)
Browse files Browse the repository at this point in the history
* fix color output in CI
  • Loading branch information
tomtau authored Sep 19, 2024
1 parent 65e5b2b commit 0a1533d
Show file tree
Hide file tree
Showing 9 changed files with 26 additions and 26 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
kind: check
toolchain: 1.74.0 # needed for `clap` in pest_debugger
- name: cargo check
run: cargo check --all --features pretty-print,const_prec_climber,memchr,grammar-extras --all-targets
run: cargo check --all --features pretty-print,const_prec_climber,memchr,grammar-extras,miette-error --all-targets

testing:
name: Unit, Style, and Lint Testing
Expand All @@ -44,9 +44,9 @@ jobs:
- name: cargo fmt
run: cargo fmt --all -- --check
- name: cargo clippy
run: cargo clippy --all --features pretty-print,const_prec_climber,memchr,grammar-extras --all-targets -- -Dwarnings
run: cargo clippy --all --features pretty-print,const_prec_climber,memchr,grammar-extras,miette-error --all-targets -- -Dwarnings
- name: cargo test
run: cargo test --all --features pretty-print,const_prec_climber,memchr,grammar-extras --release
run: FORCE_COLOR=1 cargo test --all --features pretty-print,const_prec_climber,memchr,grammar-extras,miette-error --release
- name: cargo test (ignored)
run: cargo test -p pest_grammars --lib --verbose --release -- --ignored tests::toml_handles_deep_nesting_unstable

Expand All @@ -64,7 +64,7 @@ jobs:
kind: check
toolchain: 1.74.0 # needed for `clap` in pest_debugger
- name: cargo doc
run: cargo doc --all --features pretty-print,const_prec_climber,memchr,grammar-extras
run: cargo doc --all --features pretty-print,const_prec_climber,memchr,grammar-extras,miette-error

dependency:
name: Minimal Versions Testing
Expand Down Expand Up @@ -101,7 +101,7 @@ jobs:
- name: Install cargo-llvm-cov
uses: taiki-e/install-action@cargo-llvm-cov
- name: Generate code coverage
run: cargo llvm-cov --features pretty-print,const_prec_climber,memchr,grammar-extras --workspace --lcov --output-path lcov.info
run: FORCE_COLOR=1 cargo llvm-cov --features pretty-print,const_prec_climber,memchr,grammar-extras,miette-error --workspace --lcov --output-path lcov.info
- name: Upload Results to Codecov
uses: codecov/codecov-action@v3
with:
Expand Down
8 changes: 4 additions & 4 deletions debugger/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "pest_debugger"
description = "pest grammar debugger"
version = "2.7.12"
version = "2.7.13"
edition = "2021"
authors = [
"Dragoș Tiselice <dragostiselice@gmail.com>",
Expand All @@ -17,9 +17,9 @@ readme = "_README.md"
rust-version = "1.61"

[dependencies]
pest = { path = "../pest", version = "2.7.12" }
pest_meta = { path = "../meta", version = "2.7.12" }
pest_vm = { path = "../vm", version = "2.7.12" }
pest = { path = "../pest", version = "2.7.13" }
pest_meta = { path = "../meta", version = "2.7.13" }
pest_vm = { path = "../vm", version = "2.7.13" }
reqwest = { version = "= 0.11.13", default-features = false, features = [
"blocking",
"json",
Expand Down
6 changes: 3 additions & 3 deletions derive/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "pest_derive"
description = "pest's derive macro"
version = "2.7.12"
version = "2.7.13"
edition = "2021"
authors = ["Dragoș Tiselice <dragostiselice@gmail.com>"]
homepage = "https://pest.rs/"
Expand All @@ -25,5 +25,5 @@ grammar-extras = ["pest_generator/grammar-extras"]

[dependencies]
# for tests, included transitively anyway
pest = { path = "../pest", version = "2.7.12", default-features = false }
pest_generator = { path = "../generator", version = "2.7.12", default-features = false }
pest = { path = "../pest", version = "2.7.13", default-features = false }
pest_generator = { path = "../generator", version = "2.7.13", default-features = false }
6 changes: 3 additions & 3 deletions generator/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "pest_generator"
description = "pest code generator"
version = "2.7.12"
version = "2.7.13"
edition = "2021"
authors = ["Dragoș Tiselice <dragostiselice@gmail.com>"]
homepage = "https://pest.rs/"
Expand All @@ -22,8 +22,8 @@ grammar-extras = ["pest_meta/grammar-extras"]
export-internal = []

[dependencies]
pest = { path = "../pest", version = "2.7.12", default-features = false }
pest_meta = { path = "../meta", version = "2.7.12" }
pest = { path = "../pest", version = "2.7.13", default-features = false }
pest_meta = { path = "../meta", version = "2.7.13" }
proc-macro2 = "1.0"
quote = "1.0"
syn = "2.0"
6 changes: 3 additions & 3 deletions grammars/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "pest_grammars"
description = "pest popular grammar implementations"
version = "2.7.12"
version = "2.7.13"
edition = "2021"
authors = ["Dragoș Tiselice <dragostiselice@gmail.com>"]
homepage = "https://pest.rs/"
Expand All @@ -14,8 +14,8 @@ readme = "_README.md"
rust-version = "1.61"

[dependencies]
pest = { path = "../pest", version = "2.7.12" }
pest_derive = { path = "../derive", version = "2.7.12" }
pest = { path = "../pest", version = "2.7.13" }
pest_derive = { path = "../derive", version = "2.7.13" }

[dev-dependencies]
criterion = "0.5"
Expand Down
4 changes: 2 additions & 2 deletions meta/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "pest_meta"
description = "pest meta language parser and validator"
version = "2.7.12"
version = "2.7.13"
edition = "2021"
authors = ["Dragoș Tiselice <dragostiselice@gmail.com>"]
homepage = "https://pest.rs/"
Expand All @@ -22,7 +22,7 @@ include = [
rust-version = "1.61"

[dependencies]
pest = { path = "../pest", version = "2.7.12" }
pest = { path = "../pest", version = "2.7.13" }
once_cell = "1.8.0"

[build-dependencies]
Expand Down
2 changes: 1 addition & 1 deletion pest/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "pest"
description = "The Elegant Parser"
version = "2.7.12"
version = "2.7.13"
edition = "2021"
authors = ["Dragoș Tiselice <dragostiselice@gmail.com>"]
homepage = "https://pest.rs/"
Expand Down
4 changes: 2 additions & 2 deletions pest/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1169,8 +1169,8 @@ mod tests {

assert_eq!(
format!("{:?}", miette_error),
vec![
" \u{1b}[31m×\u{1b}[0m Failure to parse at (2, 1)",
[
" \u{1b}[31m×\u{1b}[0m Failure to parse at Pos((2, 1))",
" ╭────",
" \u{1b}[2m1\u{1b}[0m │ def",
" · \u{1b}[35;1m┬\u{1b}[0m",
Expand Down
6 changes: 3 additions & 3 deletions vm/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "pest_vm"
description = "pest grammar virtual machine"
version = "2.7.12"
version = "2.7.13"
edition = "2021"
authors = ["Dragoș Tiselice <dragostiselice@gmail.com>"]
homepage = "https://pest.rs/"
Expand All @@ -14,8 +14,8 @@ readme = "_README.md"
rust-version = "1.61"

[dependencies]
pest = { path = "../pest", version = "2.7.12" }
pest_meta = { path = "../meta", version = "2.7.12" }
pest = { path = "../pest", version = "2.7.13" }
pest_meta = { path = "../meta", version = "2.7.13" }

[features]
grammar-extras = ["pest_meta/grammar-extras"]

0 comments on commit 0a1533d

Please sign in to comment.