Skip to content

enforce python 3.12 only #21

enforce python 3.12 only

enforce python 3.12 only #21

Workflow file for this run

name: Unit Testsfrom nbiatoolkit import NBIAClient
on: [push]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
python-version: ["3.12"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Install poetry
uses: snok/install-poetry@v1
- name: Install package
run: poetry install
- name: Test with pytest
run: |
poetry run pytest tests/ --cov=nbiatoolkit --cov-report=xml