Skip to content

Update code/test to work with latest Python 3.12 and add CI #2

Update code/test to work with latest Python 3.12 and add CI

Update code/test to work with latest Python 3.12 and add CI #2

Workflow file for this run

name: Run Unit Tests
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
steps:
# Step 1: Check out the code
- name: Checkout code
uses: actions/checkout@v3
# Step 2: Set up Python
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.12' # Specify the Python version you want to use
# Step 3: Install dependencies
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools pytest
pip install -r requirements.txt || true # In case requirements.txt doesn't exist
# Step 4: Run tests
- name: Run tests
run: |
pip3 install ".[tests]"
pytest