Skip to content

update gh actions with supported python versions #21

update gh actions with supported python versions

update gh actions with supported python versions #21

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: Build and Test
on:
push:
branches: [ master ]
paths-ignore:
- 'docs/**'
pull_request:
branches: [ master ]
paths-ignore:
- 'docs/**'
jobs:
build_test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.9, 3.10, 3.11]
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 dependencies
run: |
python -m pip install --upgrade pip
pip install .[complete]
- name: Lint with ruff
uses: chartboost/ruff-action@v1
- name: Test with pytest
run: |
pytest --cov-report xml --cov=cchdo
- name: Test code style with black
run: |
black --check .
- name: Test typing
run: |
mypy -v cchdo
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
file: ./coverage.xml