Skip to content

[522] changed Python setup version from v3 to v2 #5

[522] changed Python setup version from v3 to v2

[522] changed Python setup version from v3 to v2 #5

name: Python Unit Tests
on: [push, pull_request]
jobs:
test:
strategy:
matrix:
python-version: ['3.11', '3.10', '3.9', '3.8']
runs-on: ubuntu-latest
steps:
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: python -m pip install --upgrade pip poetry
- name: Set up project
run: |
cd $GITHUB_WORKSPACE
python -m poetry install
- name: Run unit tests
run: python -m poetry run pytest