Skip to content
Open
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
32 changes: 32 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: ci
on:
push:
pull_request:
workflow_dispatch:
jobs:
ci:
strategy:
fail-fast: false # https://github.com/actions/runner-images#available-images
matrix: # https://www.lua.org/versions.html
os: [ubuntu-26.04, ubuntu-26.04-arm]
lua-version: [5.1, 5.2, 5.3, 5.4, 5.5]
runs-on: ${{ matrix.os }}
steps:
- run: |
sudo apt-get update
sudo apt-get install -y lua${{ matrix.lua-version }} liblua${{ matrix.lua-version }}-dev luarocks
- run: lua -v && luarocks --version # Lua 5.x.x Luarocks 3.13.0
- uses: actions/checkout@v7
- uses: actions/setup-python@v6
with:
python-version: 3.x
pip-install: --editable .
- run: luarocks lint lunatic-python-scm-0.rockspec
- run: luarocks lint rockspecs/lunatic-python-1.0-1.rockspec
- run: luarocks --local make
- run: luarocks show lunatic-python

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very well done! Linting the rockspecs and showing the package is actually a very cool idea here :)

# lua5.2: https://github.com/bastibe/lunatic-python/issues/98
# lua5.4: https://github.com/bastibe/lunatic-python/issues/99
# lua5.5: https://github.com/bastibe/lunatic-python/issues/100
- if: matrix.lua-version == '5.1' || matrix.lua-version == '5.3'
run: lua${{ matrix.lua-version }} tests/test_py.lua

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where did python -m doctest tests/test_lua.py from #96 go?

We should test both bridges (Lua in Python / Python in Lua)!

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.