Skip to content

Commit

Permalink
Try new CI file
Browse files Browse the repository at this point in the history
  • Loading branch information
LaurenzV committed May 21, 2024
1 parent 7863fc4 commit b340ba0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,13 @@ jobs:
ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
- name: Install fonttools
run: pip install fonttools=4.51
- uses: dtolnay/rust-toolchain@stable
- run: cargo build --release
name: Build
- run: cargo test --release
name: Run tests
3 changes: 2 additions & 1 deletion tests/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,8 @@ fn test_font_tools(font_file: &str, gids: &str, num: u16) {
.unwrap().stdout;

let reference = std::fs::read(ttx_path).unwrap();
assert_eq!(reference, output, "fonttools output didn't match.");
assert_eq!(reference.len(), output.len(), "fonttools output didn't match in length.");
assert!(reference.iter().zip(output.iter()).all(|(a,b)| a == b), "fonttools output didn't match.");
}
}

Expand Down

0 comments on commit b340ba0

Please sign in to comment.