Skip to content

Commit d900a27

Browse files
committed
Add a GitHub Action to replace TravisCI
1 parent 26d0ac7 commit d900a27

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: ci
2+
on:
3+
push:
4+
pull_request:
5+
workflow_dispatch:
6+
jobs:
7+
ci:
8+
runs-on: ubuntu-26.04
9+
steps:
10+
- run: sudo apt-get update
11+
- run: sudo apt-get install -y lua5.1 liblua5.1-0-dev
12+
- run: lua -h || lua -v
13+
- uses: actions/checkout@v6
14+
- uses: actions/setup-python@v6
15+
with:
16+
python-version: 3.x
17+
- run: pip install --upgrade pip
18+
- env:
19+
PYTHON_LIBRT: "amd64" # "x64"
20+
run: pip install --editable . || true # TODO: Always fails even with $PYTHON_LIBRT defined!
21+
- run: pip install lunatic-python-universal # Workaround: Install from PyPI
22+
- shell: python # Sanity check
23+
run: |
24+
import lua
25+
lg = lua.globals()
26+
print(f"{lg = }")
27+
print(f"{lg.string = }")
28+
print(f"{lg.string.lower = }")
29+
print(f"{lg.string.lower('Hello world!') = }")
30+
assert lg.string.lower('Hello world!') != 'Hello world!'
31+
assert lg.string.lower('Hello world!') == 'hello world!'

0 commit comments

Comments
 (0)