mirror of
https://github.com/dnpm-dip/mv64e-mtb-dto-rs.git
synced 2025-07-03 03:22:53 +00:00
Add GitHub workflow to run tests
This commit is contained in:
22
.github/workflows/test.yml
vendored
Normal file
22
.github/workflows/test.yml
vendored
Normal file
@ -0,0 +1,22 @@
|
||||
name: "Run Tests"
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ "master" ]
|
||||
pull_request:
|
||||
branches: [ "master" ]
|
||||
|
||||
env:
|
||||
CARGO_TERM_COLOR: always
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Build
|
||||
run: cargo build --verbose
|
||||
- name: Run tests
|
||||
run: cargo test --verbose
|
@ -34,7 +34,7 @@ impl FromStr for Mtb {
|
||||
/// use std::str::FromStr;
|
||||
///
|
||||
/// fn main() {
|
||||
/// const MTB_JSON: &str = include_str!("../tests/fake_MTBFile.json");
|
||||
/// const MTB_JSON: &str = include_str!("../tests/mv64e-mtb-fake-patient.json");
|
||||
///
|
||||
/// let mtb_file = Mtb::from_str(MTB_JSON).unwrap();
|
||||
/// println!("{:#?}", mtb_file);
|
||||
|
Reference in New Issue
Block a user