Fix "setup Connected Services Error" due to latest API Changes #619
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: Linting | |
on: | |
push: | |
branches: | |
- master | |
- "v0.7" | |
pull_request: | |
jobs: | |
pre-commit: | |
name: Pre-commit | |
strategy: | |
matrix: | |
python-version: ["3.8", "3.9", "3.10", "3.11"] | |
runs-on: ubuntu-latest | |
env: | |
OS: ubuntu-latest | |
PYTHON: ${{ matrix.python-version }} | |
steps: | |
- name: Check out the repository | |
uses: actions/checkout@v3 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install Poetry | |
uses: abatilo/[email protected] | |
with: | |
poetry-version: 1.5.1 | |
- name: Install dependencies | |
run: poetry install | |
- name: Run pre-commit on all files | |
run: | | |
poetry run pre-commit run --all-files --show-diff-on-failure --color=always | |
- name: Run pytest with coverage | |
run: | | |
poetry run pip install coverage | |
poetry run coverage run -m pytest | |
poetry run coverage xml | |
- name: Upload Coverage to Codecov | |
uses: codecov/codecov-action@v3 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
env_vars: OS,PYTHON | |
fail_ci_if_error: true | |
flags: unittests | |
verbose: true |