Skip to content

Commit

Permalink
ci: Run tests on main branch
Browse files Browse the repository at this point in the history
  • Loading branch information
dandxy89 committed Jan 5, 2024
1 parent c85fd50 commit ca652a8
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/cargo_test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
on:
push:
branches:
- "main"
pull_request:
types: [assigned, opened, synchronize, reopened]
paths:
Expand Down
3 changes: 2 additions & 1 deletion src/common.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
use crate::Rule;
use pest::iterators::Pair;

use crate::Rule;

pub trait RuleExt {
fn is_numeric(&self) -> bool;
fn is_cmp(&self) -> bool;
Expand Down
2 changes: 1 addition & 1 deletion src/model/constraint.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use super::{coefficient::Coefficient, sos::SOSClass};
use crate::model::{coefficient::Coefficient, sos::SOSClass};

#[derive(Debug, Clone)]
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
Expand Down
3 changes: 2 additions & 1 deletion src/parse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ use std::{
path::Path,
};

use crate::{lp_parts::compose, model::lp_problem::LPProblem, LParser, Rule};
use pest::Parser;
use tiny_id::ShortCodeGenerator;

use crate::{lp_parts::compose, model::lp_problem::LPProblem, LParser, Rule};

/// # Errors
/// Returns an error if the `read_to_string` or `open` fails
pub fn parse_file(path: &Path) -> anyhow::Result<String> {
Expand Down

0 comments on commit ca652a8

Please sign in to comment.