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

👷 ci: add lint-and-fmt workflow #32

👷 ci: add lint-and-fmt workflow

👷 ci: add lint-and-fmt workflow #32

Workflow file for this run

name: Unit Test
on: [push, pull_request, workflow_dispatch]
jobs:
unit-test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
architecture: ["x64"]
name: Python ${{ matrix.python-version }} on ${{ matrix.architecture }} test
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
architecture: ${{ matrix.architecture }}
- name: Install poetry
uses: snok/install-poetry@v1
- name: Install just
uses: extractions/setup-just@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/cache@v3
id: poetry-cache
with:
path: |
**/.venv
key: ${{ runner.os }}-${{ matrix.python-version }}-${{ matrix.architecture }}-poetry-${{ hashFiles('poetry.lock') }}
- name: Install dependencies
if: steps.poetry-cache.outputs.cache-hit != 'true'
run: |
poetry install
- name: unit test
run: |
just ci-test