add bytes_allowed method to Parser for token validation #231
This file contains 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: Rust | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Build parser | |
run: cargo build --verbose | |
working-directory: parser | |
- name: Setup Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.11" | |
- name: Install python test dependencies | |
run: ./scripts/install-deps.sh | |
- name: Run python guidance tests | |
run: ./scripts/test-guidance.sh | |
- name: Build sdist | |
run: maturin build --sdist --zig | |
- name: Build wheel | |
run: maturin build --zig | |
- name: Upload sdist and wheel artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: wheels | |
path: target/wheels/* |