Skip to content

Feature/Add support 3.10 and 3.11. #8

Feature/Add support 3.10 and 3.11.

Feature/Add support 3.10 and 3.11. #8

Workflow file for this run

name: Test
on:
push:
branches: [ 'main' ]
pull_request:
types: [ 'opened', 'synchronize', 'reopened' ]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ '3.8', '3.9', '3.10', '3.11' ]
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install poetry
poetry check
poetry install
- name: Linting
run: poetry run flake8
- name: Execute Unit, Integration and Acceptance Tests
run: poetry run pytest
- name: Fix coverage.xml for Sonar
run: |
sed -i 's@'$GITHUB_WORKSPACE'@/github/workspace/@g' coverage.xml
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}