File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 1717 uses : actions/checkout@v6
1818 - name : Install Toolchain
1919 run : rustup update stable && rustup default stable
20+ - uses : taiki-e/install-action@sccache
21+ - uses : taiki-e/install-action@nextest
2022 - name : Run tests
2123 run : cargo nextest run --release --all-features
2224 check :
2628 uses : actions/checkout@v6
2729 - name : Install Toolchain
2830 run : rustup update stable && rustup default stable
31+ - uses : taiki-e/install-action@sccache
2932 - name : Run format check
3033 run : cargo fmt --check
3134 - name : Run clippy
Original file line number Diff line number Diff line change @@ -7,16 +7,16 @@ use std::ffi::CString;
77
88/// Exec python scripts as filter
99pub fn exec ( module : & str ) -> Result < Vec < String > > {
10- pyo3 :: prepare_freethreaded_python ( ) ;
11- let script = load_script ( & module) ?;
10+ Python :: initialize ( ) ;
11+ let script = load_script ( module) ?;
1212 let cache = Cache :: new ( ) ?;
1313
1414 // args
1515 let sps = serde_json:: to_string ( & cache. get_problems ( ) ?) ?;
1616 let stags = serde_json:: to_string ( & cache. get_tags ( ) ?) ?;
1717
1818 // pygil
19- Python :: with_gil ( |py| {
19+ Python :: attach ( |py| {
2020 let script_cstr = CString :: new ( script. as_str ( ) ) ?;
2121 let filename_cstr = CString :: new ( "plan.py" ) ?;
2222 let module_name_cstr = CString :: new ( "plan" ) ?;
You can’t perform that action at this time.
0 commit comments