Skip to content

Add support for regular expressions in Tokenizers.PreTokenizer.split/… #181

Add support for regular expressions in Tokenizers.PreTokenizer.split/…

Add support for regular expressions in Tokenizers.PreTokenizer.split/… #181

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
env:
MIX_ENV: test
TOKENIZERS_BUILD: "true"
jobs:
main:
runs-on: ubuntu-latest
name: "Test (${{ matrix.elixir_version }}, ${{ matrix.otp_version }})"
strategy:
fail-fast: false
matrix:
include:
- elixir_version: 1.15.4
otp_version: 26.0.2
lint: true
- elixir_version: 1.13
otp_version: 24.2
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: |
deps
_build
key: ${{ runner.os }}-mix-${{ matrix.elixir_version }}-${{matrix.otp_version}}-${{ hashFiles('**/mix.lock') }}
restore-keys: |
${{ runner.os }}-mix-${{ matrix.elixir_version }}-${{matrix.otp_version}}-
- uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
native/ex_tokenizers/target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
- uses: erlef/setup-beam@v1
with:
otp-version: ${{matrix.otp_version}}
elixir-version: ${{matrix.elixir_version}}
- run: mix deps.get
- run: mix format --check-formatted
if: ${{ matrix.lint }}
- run: mix deps.unlock --check-unused
if: ${{ matrix.lint }}
- run: mix deps.compile
- run: mix compile --warnings-as-errors
if: ${{ matrix.lint }}
- run: mix test