Skip to content

✨ Updated supported python versions. #66

✨ Updated supported python versions.

✨ Updated supported python versions. #66

Workflow file for this run

# This workflow will install Python dependencies, run test and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: CI
on:
push:
branches:
- main
- master
pull_request:
branches:
- main
- master
jobs:
lint:
runs-on: ubuntu-latest
strategy:
matrix:
python-version:
- 3.12
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install poetry
poetry config virtualenvs.create false
poetry install
- name: Lint
run: |
inv lint
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@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install poetry
poetry config virtualenvs.create false
poetry install
- name: Test
run: |
inv test
code-cov:
runs-on: ubuntu-latest
strategy:
matrix:
python-version:
- 3.12
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install poetry
poetry config virtualenvs.create false
poetry install
- name: upload codecov data
run: |
pytest --cov --cov-fail-under=0 --cov-report xml
codecov
env:
CODECOV_TOKEN: ${{secrets.CODECOV_TOKEN}}