Skip to content

ci: Added python 3.12 to test matrix (#12) #10

ci: Added python 3.12 to test matrix (#12)

ci: Added python 3.12 to test matrix (#12) #10

name: Run unit tests
on:
push:
branches:
- '*'
paths:
- 'eth_2_key_manager_api_client/**'
pull_request:
branches:
- master
paths:
- 'eth_2_key_manager_api_client/**'
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.9', '3.10', '3.11', '3.12']
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: install poetry
run: pip install poetry
- name: Configure Poetry
run: poetry config virtualenvs.in-project true
- name: Install dependencies
run: poetry install
- name: Run unit tests with pytest
run: poetry run python -m pytest tests/unit/