Add Tuple.next, Str.format, and inline a few fns #34
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: [push] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Install dependencies | |
| run: | | |
| sudo snap install --beta --classic zig | |
| pip install pytest | |
| zig version | |
| - name: Run zig tests | |
| run: zig test py.zig -I/usr/include -I$(python -c "import sysconfig;print(sysconfig.get_path(\"include\"))") -L$(python -c "import sysconfig;print(sysconfig.get_config_var(\"LIBDIR\"))") -lpython$(python -c "import sysconfig;print(sysconfig.get_python_version())") | |
| - name: Build example | |
| run: pip install ./example | |
| - name: Run pytests | |
| run: pytest tests | |