Add APv2 support #87
Workflow file for this run
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: Continuous Integration | |
on: | |
workflow_dispatch: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
linux: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"] | |
name: "${{ matrix.python-version }}" | |
timeout-minutes: 30 | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Setup python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Cache Python modules | |
uses: actions/cache@v3 | |
with: | |
path: ~/.cache/pip | |
key: ${{ runner.os }}-py${{ matrix.python-version }}-${{ hashFiles('**/setup.cfg') }} | |
restore-keys: | | |
${{ runner.os }}-py${{ matrix.python-version }}- | |
- name: Install Rust | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
profile: minimal | |
- name: Install dependencies | |
run: | | |
rm -rf .cache .eggs rust_fst/_ffi.py build *.egg-info | |
find ./ -name "__pycache__" -type d -print0 |xargs -0 rm -rf | |
find ./ -name "*.pyc" -type f -print0 |xargs -0 rm -rf | |
find ./ -name "*.so" -type f -print0 |xargs -0 rm -rf | |
pip install -U pip maturin | |
sudo apt install libffi-dev | |
- name: Compile | |
run: | | |
pip install -U --upgrade-strategy=eager .[test] | |
- name: Run Tests | |
run: | | |
pytest --cache-clear |