Skip to content

Add a GitHub Action to replace TravisCI#94

Open
cclauss wants to merge 1 commit into
bastibe:masterfrom
cclauss:patch-1
Open

Add a GitHub Action to replace TravisCI#94
cclauss wants to merge 1 commit into
bastibe:masterfrom
cclauss:patch-1

Conversation

@cclauss

@cclauss cclauss commented Jun 15, 2026

Copy link
Copy Markdown

Test results: https://github.com/cclauss/lunatic-python/actions

Why does this line fail?!?
% pip install --editable .

@cclauss

cclauss commented Jun 15, 2026

Copy link
Copy Markdown
Author

@leso-kn your review on this one, please.

@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.

Thanks for your submission! I wrote some comments :)

Comment thread .github/workflows/ci.yml
- env:
PYTHON_LIBRT: "amd64" # "x64"
run: pip install --editable . || true # TODO: Always fails even with $PYTHON_LIBRT defined!
- run: pip install lunatic-python-universal # Workaround: Install from PyPI

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.

Thank you for your contribution :) It looks like this line will overwrite the local library version with the one published on PyPI or am I interpreting something wrong?

@cclauss cclauss Jun 15, 2026

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

The local one does NOT install. If we can get it to install, then we can remove the PyPI install.

I will do more once we get pip install --editable . to pass. Help please.

Comment thread .github/workflows/ci.yml
runs-on: ubuntu-26.04
steps:
- run: sudo apt-get update
- run: sudo apt-get install -y lua5.1 liblua5.1-0-dev

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.

As a side-note: Ideally we should test multiple lua versions using a matrix job. But we can split that off into a separate PR, so no pressure!

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Happy to, but let's get the local install to work first.

Comment thread .github/workflows/ci.yml
run: pip install --editable . || true # TODO: Always fails even with $PYTHON_LIBRT defined!
- run: pip install lunatic-python-universal # Workaround: Install from PyPI
- shell: python # Sanity check
run: |

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.

Ideally this should just run tests/test_lua.py and tests/test_py.lua.

Did you try to use them, are they broken?

Do feel free to use the legacy .travis.yml file as a reference :)

@cclauss cclauss Jun 15, 2026

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

python tests/test_lua.py generates a SegFault. See:

tests/test_py.lua fails also in #93.

I will do more once we get pip install --editable . to pass.

@cclauss cclauss requested a review from leso-kn June 15, 2026 18:28
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