Skip to content

feat(PYTHON3.12): ✨ new python 3.12 #127

feat(PYTHON3.12): ✨ new python 3.12

feat(PYTHON3.12): ✨ new python 3.12 #127

Workflow file for this run

name: Unit Test
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:
jobs:
tests:
runs-on: "ubuntu-latest"
name: "Unit test for Python ${{ matrix.python-version }}"
env:
USING_COVERAGE: '3.11'
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
steps:
- uses: "actions/checkout@v2"
- uses: "actions/setup-python@v2"
with:
python-version: "${{ matrix.python-version }}"
- name: "Install dependencies"
run: |
pip install poetry
poetry install
- name: "Run tox targets for ${{ matrix.python-version }}"
run: "make tox"
- name: "Get coverage"
run: |
set -xe
pip install coverage
coverage combine
coverage xml
if: "contains(env.USING_COVERAGE, matrix.python-version)"
- name: Upload coverage to Codecov
if: "contains(env.USING_COVERAGE, matrix.python-version)"
uses: "codecov/codecov-action@v1"