Update dependency sphinx-rtd-theme to ^0.5.0 #256
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: Lint and test | |
on: | |
pull_request: | |
branches: | |
- master | |
- staging | |
jobs: | |
linting: | |
name: Linting | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.11' | |
- name: Install Python dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install isort flake8 black mypy | |
- name: Run linters | |
uses: cognitedata/[email protected] | |
with: #Black for linting, flake8 linting currently disabled, mypy for type hinting | |
github_token: ${{ secrets.github_token }} | |
black: true | |
black_args: "--line-length 120" | |
mypy: false | |
auto_fix: true | |
testing: | |
name: Testing | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.11' | |
- name: Install dependencies | |
run: | | |
python3 -m pip install --upgrade pip poetry | |
poetry config virtualenvs.create false | |
poetry install | |
- name: Run tests | |
run: | | |
poetry run pytest -v --cov-report xml:coverage.xml --cov | |
coverage xml | |
- name: Codecov report | |
uses: codecov/codecov-action@v3 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
files: ./coverage.xml |