Commit 672f87f 1 parent e9f960c commit 672f87f Copy full SHA for 672f87f
File tree 2 files changed +14
-19
lines changed
2 files changed +14
-19
lines changed Original file line number Diff line number Diff line change 13
13
jobs :
14
14
build :
15
15
runs-on : ${{matrix.os}}
16
+ env :
17
+ DISPLAY : ' :99'
16
18
strategy :
17
19
fail-fast : false
18
20
matrix :
19
21
os : [macos-latest, ubuntu-latest, windows-latest]
22
+ include :
23
+ - os : ubuntu-latest
24
+ headless : Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
25
+ - os : macos-latest
26
+ testflag : -- --skip test_api
27
+ - os : windows-latest
28
+ testflag : -- --skip test_api
20
29
21
30
steps :
22
31
- uses : actions/checkout@v3
30
39
packages : libxtst-dev libevdev-dev libxdo-dev
31
40
version : 1.0
32
41
42
+ - name : Setup headless environment
43
+ run : ${{matrix.headless}}
44
+
33
45
- name : Add components
34
46
run : rustup component add clippy rustfmt
35
47
Original file line number Diff line number Diff line change @@ -458,7 +458,6 @@ impl Frontend for Wish {
458
458
mod tests {
459
459
use crate :: { Config , Wish } ;
460
460
use afrim:: frontend:: Frontend ;
461
- use rstk:: { self } ;
462
461
use std:: path:: Path ;
463
462
use std:: thread;
464
463
use std:: time:: Duration ;
@@ -487,8 +486,8 @@ mod tests {
487
486
afrim_wish. display ( ) ;
488
487
489
488
// Test the geometry.
490
- ( 0 ..800 ) . for_each ( |i| {
491
- if i % 100 != 0 {
489
+ ( 0 ..100 ) . for_each ( |i| {
490
+ if i % 10 != 0 {
492
491
return ;
493
492
} ;
494
493
let i = i as f64 ;
@@ -508,21 +507,5 @@ mod tests {
508
507
Some ( & ( "test" . to_owned( ) , "123" . to_owned( ) , "ok" . to_owned( ) ) )
509
508
) ;
510
509
afrim_wish. display ( ) ;
511
-
512
- // Test error message.
513
- {
514
- let afrim_wish = afrim_wish. clone ( ) ;
515
- rstk:: after ( 300 , move || {
516
- afrim_wish. raise_error ( "Intentional error" , "For testing purpose" ) ;
517
- } ) ;
518
- }
519
- {
520
- let afrim_wish = afrim_wish. clone ( ) ;
521
- rstk:: after ( 500 , move || {
522
- afrim_wish. destroy ( ) ;
523
- } ) ;
524
- }
525
-
526
- afrim_wish. listen ( ) ;
527
510
}
528
511
}
You can’t perform that action at this time.
0 commit comments