Skip to content

Merge pull request #21 from CarolineMorton/codelist-factory #18

Merge pull request #21 from CarolineMorton/codelist-factory

Merge pull request #21 from CarolineMorton/codelist-factory #18

name: Run Python Unit Tests
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
run-pytests:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ "3.11" ]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Build the codelist package
run: |
cd bindings/python
python -m venv venv
source venv/bin/activate
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install maturin
maturin develop
python -m unittest discover