Skip to content

Workflow file for this run

name: Python application
on:
push:
branches: ["citest"]
permissions:
contents: read
jobs:
linux:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10"]
target: [x86_64]
defaults:
run:
working-directory: ./src/python
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- name: Build Wheels
uses: messense/maturin-action@v1
with:
command: build
target: ${{ matrix.target }}
args: --release --out dist --sdist -m src/python/Cargo.toml
- name: Install built wheel
run: |
pip install demoparser2 dist --force-reinstall
- name: Run tests
run: |
pip install pytest
pytest