diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..080ec11 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,24 @@ +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 + lua-version: [5.1, 5.2, 5.3, 5.4, 5.5] + runs-on: ubuntu-26.04 + steps: + - run: sudo apt-get update + - run: sudo apt-get install -y lua${{ matrix.lua-version }} liblua${{ matrix.lua-version }}-dev luarocks + - run: lua -h || lua -v + - uses: actions/checkout@v6 + - uses: actions/setup-python@v6 + with: + python-version: 3.x + - run: pip install --upgrade pip + - run: luarocks install --local lunatic-python + - run: pip install --editable . + - run: python -m doctest tests/test_lua.py