Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 13 additions & 21 deletions .github/workflows/test.yml
Original file line numberDiff line numberDiff line change
Expand Up@@ -2,36 +2,28 @@

on:
push:
branches:
- main
- "*/ci-check"
branches: [main]
pull_request: {}

jobs:
test:
name: PyTest
name: PyTest (${{ matrix.os }}, ${{ matrix.python }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [macos-latest, windows-latest, ubuntu-latest]
python: [3.8, "3.10", 3.11, 3.12]
os: [ubuntu-latest]
python: ["3.10", "3.11", "3.12"]
steps:
- name: Checkout repository
uses: actions/checkout@v4
- uses: actions/checkout@v4
- uses: actions/checkout@v4
with:
repository: interscript/interscript
- name: Run bootstrap script
run: ruby bootstrap.rb
- name: Use Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: "3.2"
- name: Use Python
uses: actions/setup-python@v5
repository: interscript/maps
path: maps
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
- name: Compile maps
run: cd python; pip install regex pytest; bash ./build.sh; pip install .
- name: PyTest
run: cd python; pytest
- run: pip install -e ".[dev]"
- run: pytest tests/ -v
env:
INTERSCRIPT_MAPS_PATH: ${{ github.workspace }}/maps/maps
Comment on lines +10 to +29
5 changes: 4 additions & 1 deletion tests/test_engine.py
Original file line numberDiff line numberDiff line change
Expand Up@@ -24,7 +24,10 @@
}
"""

MAPS = Path("/Users/mulgogi/src/interscript/interscript/maps/maps")
MAPS = Path(__file__).parent.parent.parent / "maps" / "maps"
import os
if os.environ.get("INTERSCRIPT_MAPS_PATH"):
MAPS = Path(os.environ["INTERSCRIPT_MAPS_PATH"])


def _load(name: str) -> Engine:
Expand Down
Loading