Skip to content
This repository has been archived by the owner on Sep 16, 2024. It is now read-only.

init

init #1

Workflow file for this run

name: lint
on:
push:
workflow_call:
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: setup python
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: cache dependencies
uses: actions/cache@v3
with:
path: ./.venv/
key: ${{ runner.os }}-poetry-${{ hashFiles('**/poetry.lock') }}
restore-keys: |
${{ runner.os }}-poetry-
- name: create .venv
run: python3 -m venv .venv
- name: install poetry
run: . ./.venv/bin/activate && pip install poetry
- name: install deps
run: . ./.venv/bin/activate && poetry install --no-root
- name: lint
run: . ./.venv/bin/activate && . ./.configs/scripts/lint.sh