Skip to content

Add GitHub Action workflow to run lua tests/test_py.lua#103

Open
cclauss wants to merge 1 commit into
bastibe:masterfrom
cclauss:tests_test_py.lua
Open

Add GitHub Action workflow to run lua tests/test_py.lua#103
cclauss wants to merge 1 commit into
bastibe:masterfrom
cclauss:tests_test_py.lua

Conversation

@cclauss

@cclauss cclauss commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

Note

This pull-request is a continuation of #96

Add a GitHub Action to run lua tests/test_py.lua so we can focus on fixes for:

- if: matrix.lua-version == '5.1' || matrix.lua-version == '5.3'
  run: lua${{ matrix.lua-version }} tests/test_py.lua

All 10 GHA runs pass on both ubuntu-26.04 and ubuntu-26.04-arm.

I believe that this is the best GitHub Actions PR to review and merge. It runs a test that passes and can provide feedback for three issues that can then be fixed and closed. Once this is merged, we will have Lua builds with continuous integration basic guardrails in place, and any other GHA PRs can be rebased.

@cclauss cclauss changed the title Add a GitHub Action to run tests/test_py.lua Add a GitHub Action to run lua tests/test_py.lua Jun 19, 2026
@cclauss cclauss changed the title Add a GitHub Action to run lua tests/test_py.lua Add GitHub Action workflow to run lua tests/test_py.lua Jun 22, 2026
@cclauss cclauss force-pushed the tests_test_py.lua branch 13 times, most recently from 4a1c7c2 to b1baf66 Compare June 28, 2026 15:56
@cclauss

cclauss commented Jun 29, 2026

Copy link
Copy Markdown
Contributor Author

@leso-kn leso-kn left a comment

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.

Hey there :)
Sorry for the delay, the heatwave in my country made it virtually impossible to review things.

Thanks for the update!

I would generally prefer if we continue the work in existing pull-requests (in order to keep the comment history), I have added a note that this is a continuation of #96 in the PR description. But your changes look fine, I wrote some minor comments.

Comment thread .github/workflows/ci.yml
- 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 :)

Comment thread .github/workflows/ci.yml Outdated
Comment thread .github/workflows/ci.yml
# TODO: Linux Lua5.4 only: lua5.4: python.so: undefined symbol: lua_insert
# TODO: Linux Lua5.5 only: lua5.5: python.so: undefined symbol: luaL_openlibs
- 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.

@cclauss cclauss force-pushed the tests_test_py.lua branch from b1baf66 to 2f6a631 Compare July 5, 2026 22:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants