File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,36 +2,28 @@ name: PyTest
22
33on :
44 push :
5- branches :
6- - main
7- - " */ci-check"
5+ branches : [main]
86 pull_request : {}
97
108jobs :
119 test :
12- name : PyTest
10+ name : PyTest (${{ matrix.os }}, ${{ matrix.python }})
1311 runs-on : ${{ matrix.os }}
1412 strategy :
1513 fail-fast : false
1614 matrix :
17- os : [macos-latest, windows-latest, ubuntu-latest]
18- python : [3.8, "3.10", 3.11, 3.12]
15+ os : [ubuntu-latest]
16+ python : ["3.10", " 3.11", " 3.12" ]
1917 steps :
20- - name : Checkout repository
21- uses : actions/checkout@v4
18+ - uses : actions/checkout@v4
19+ - uses : actions/checkout@v4
2220 with :
23- repository : interscript/interscript
24- - name : Run bootstrap script
25- run : ruby bootstrap.rb
26- - name : Use Ruby
27- uses : ruby/setup-ruby@v1
28- with :
29- ruby-version : " 3.2"
30- - name : Use Python
31- uses : actions/setup-python@v5
21+ repository : interscript/maps
22+ path : maps
23+ - uses : actions/setup-python@v5
3224 with :
3325 python-version : ${{ matrix.python }}
34- - name : Compile maps
35- run : cd python; pip install regex pytest; bash ./build.sh; pip install .
36- - name : PyTest
37- run : cd python; pytest
26+ - run : pip install -e ".[dev]"
27+ - run : pytest tests/ -v
28+ env :
29+ INTERSCRIPT_MAPS_PATH : ${{ github.workspace }}/maps/maps
Original file line number Diff line number Diff line change 2424}
2525"""
2626
27- MAPS = Path ("/Users/mulgogi/src/interscript/interscript/maps/maps" )
27+ MAPS = Path (__file__ ).parent .parent .parent / "maps" / "maps"
28+ import os
29+ if os .environ .get ("INTERSCRIPT_MAPS_PATH" ):
30+ MAPS = Path (os .environ ["INTERSCRIPT_MAPS_PATH" ])
2831
2932
3033def _load (name : str ) -> Engine :
You can’t perform that action at this time.
0 commit comments