Skip to content

Commit

Permalink
test: run CI with the lock and info resources to test
Browse files Browse the repository at this point in the history
  • Loading branch information
carrascomj committed Aug 1, 2023
1 parent 7a3b8ed commit e1ba6c7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
- name: Install Dependencies
run: sudo apt-get update; sudo apt-get install pkg-config libx11-dev libasound2-dev libudev-dev libxcb-render0-dev libxcb-shape0-dev libxcb-xfixes0-dev
- name: Run cargo test
run: cargo test
run: cargo test --locked

python-test:
name: Python test suite
Expand Down
4 changes: 3 additions & 1 deletion src/tests.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use crate::aesthetics::{AesPlugin, Aesthetics, Distribution, Gy, Point, Unscale};
use crate::geom::{AesFilter, GeomHist, HistTag, Xaxis};
use crate::gui::{file_drop, UiState};
use crate::{data, escher, geom};
use crate::{data, escher, geom, info};
use bevy::prelude::*;
use bevy::window::WindowId;
use bevy_prototype_lyon::prelude::{DrawMode, GeometryBuilder, Path, PathBuilder, StrokeMode};
Expand Down Expand Up @@ -163,6 +163,7 @@ fn loading_file_drop_does_not_crash() {
met_loaded: false,
});
app.insert_resource(asset_server);
app.insert_resource(Time::default());
app.insert_resource(escher::MapState {
escher_map: escher_handle,
loaded: false,
Expand All @@ -177,6 +178,7 @@ fn loading_file_drop_does_not_crash() {
bevy::asset::AssetStage::AssetEvents,
SystemStage::parallel(),
);
app.add_plugin(info::InfoPlugin);
app.add_event::<FileDragAndDrop>();
app.add_plugin(data::DataPlugin);
app.add_plugin(escher::EscherPlugin);
Expand Down

0 comments on commit e1ba6c7

Please sign in to comment.