ci: Added python 3.12 to test matrix (#12) #10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/ |