Skip to content

chore(deps): update actions/checkout action to v3.6.0 #565

chore(deps): update actions/checkout action to v3.6.0

chore(deps): update actions/checkout action to v3.6.0 #565

Workflow file for this run

name: build
on:
workflow_dispatch:
push:
paths-ignore:
- 'docs/**'
pull_request:
paths:
- '**.py'
- '**/poetry.lock'
- '**/pyproject.toml'
- '.github/workflows/build.yml'
jobs:
build:
permissions:
contents: none
strategy:
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11']
poetry-version: [1.5.1]
os: [ubuntu-latest, macos-latest, windows-latest]
extras: ['', 'mashumaro']
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash
name: 'python ${{ matrix.python-version }} on ${{ matrix.os }} [${{ matrix.extras }}]'
steps:
- uses: actions/[email protected]
- name: setting up python ${{ matrix.python-version }}
uses: actions/[email protected]
with:
python-version: ${{ matrix.python-version }}
- name: install and configure poetry ${{ matrix.poetry-version }}
uses: pronovic/[email protected]
with:
version: ${{ matrix.poetry-version }}
cache-venv: "true"
cache-poetry: "true"
cache-suffix: ${{ matrix.extras }}
- if: matrix.extras == ''
name: install dependencies without extras
run: poetry install -n -vv
- if: matrix.extras != ''
name: install dependencies with extra ${{ matrix.extras }}
run: poetry install -n -vv -E ${{ matrix.extras }}
- name: running tests
run: poetry run green -vv
- name: building
run: poetry build -n -vv
- name: generate coverage xml
run: poetry run coverage xml
- name: uploading coverage to codecov
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage.xml
flags: unittests
name: 'python ${{ matrix.python-version }} on ${{ matrix.os }} [${{ matrix.extras }}]'