Skip to content

refactor: set init to False for class private variables #6

refactor: set init to False for class private variables

refactor: set init to False for class private variables #6

Workflow file for this run

---
name: Run Tests
# yamllint disable-line rule:truthy
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
typing:
name: Typing
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install poetry
run: pipx install poetry
- name: Set up Python
uses: actions/setup-python@v4
with:
cache: poetry
- name: Install dependencies
run: poetry install
- run: echo "$(poetry env info --path)/bin" >> $"GITHUB_PATH"
- id: venv
run: echo "python-path=$(poetry env info --path)/bin/python3" >> "$GITHUB_OUTPUT"
- name: Check for pyright errors
uses: jakebailey/pyright-action@v1
with:
python-path: ${{ steps.venv.outputs.python-path }}
tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version:
- '3.9'
- '3.10'
- '3.11'
- '3.12'
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
id: setup-python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install Poetry
uses: abatilo/actions-poetry@v2
- name: Install & Cache Dependencies
id: cache-deps
uses: allanchain/poetry-cache-action@release
with:
upload-strategy: on-success
cache-key-prefix: python${{ matrix.python-version }}
- name: Test with pytest
run: poetry run pytest --showlocals -vvv --cov-report=xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}