Skip to content

chore: Initial

chore: Initial #4

Workflow file for this run

name: CI
on: [push]
jobs:
build:
runs-on: self-hosted
steps:
- uses: actions/checkout@v1
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: 3.10.14
- name: Install poetry
run: |
python -m pip install poetry
- name: Configure poetry
run: |
python -m poetry config virtualenvs.in-project true
- name: Cache the virtualenv
uses: actions/cache@v2
with:
path: ./.venv
key: ${{ runner.os }}-venv-${{ hashFiles('**/poetry.lock') }}
- name: Install dependencies
run: |
python -m poetry install
- name: Run linters
run: |
python -m poetry run python -m black . --check
- name: Run tests
run: |
python -m poetry run python -u -m unittest discover