Skip to content

Commit

Permalink
ci(mrml-python): create config file
Browse files Browse the repository at this point in the history
Signed-off-by: Jérémie Drouet <[email protected]>
  • Loading branch information
jdrouet committed Dec 5, 2023
1 parent a78b08b commit 8146154
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/mrml-python-main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
on: [push]

defaults:
run:
working-directory: packages/mrml-python

env:
RUSTFLAGS: "-Dwarnings"

jobs:
testing:
runs-on: ubuntu-latest

concurrency:
group: ${{ github.ref }}-mrml-python
cancel-in-progress: true

steps:
- uses: actions/checkout@v3

- uses: actions/setup-python@v4
with:
python-version: '3.10'

- name: install cargo toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal

- name: init python venv
run: |
pip install --upgrade pip
python3 -m venv env
source env/bin/activate
- name: build python package
uses: PyO3/maturin-action@v1
with:
command: build

- name: install package
run: pip install mrml

- name: runing python test
run: pytest

0 comments on commit 8146154

Please sign in to comment.