Merge pull request #79 from codectl/dependabot/github_actions/actions… #171
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: CI | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- master | |
- feature/** | |
- fix/** | |
tags: [ "[0-9]+.[0-9]+.[0-9]+*" ] | |
jobs: | |
linters: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./.github/actions/poetry-setup | |
with: | |
python-version: "3.9" | |
- name: Run linter with tox | |
shell: bash | |
run: tox -e lint | |
tests: | |
name: ${{ matrix.os }}/${{ matrix.python-version }} | |
runs-on: ${{ matrix.os }} | |
continue-on-error: ${{ matrix.experimental }} | |
strategy: | |
matrix: | |
os: [ ubuntu-latest, macos-latest, windows-latest ] | |
python-version: [ "3.8", "3.9", "3.10", "3.11" ] | |
experimental: [ false ] | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./.github/actions/poetry-setup | |
with: | |
python-version: ${{ matrix.python-version }} | |
os: ${{ matrix.os }} | |
- name: Run test suite with tox | |
shell: bash | |
run: tox -e py -- -vv -p no:warnings -q | |
coverage: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./.github/actions/poetry-setup | |
with: | |
python-version: "3.9" | |
os: ubuntu-latest | |
- name: Run coverage with tox | |
shell: bash | |
run: tox -e coverage -- -p no:warnings -q | |
- name: Submit coverage to codecov | |
uses: codecov/codecov-action@v3 |