-
Notifications
You must be signed in to change notification settings - Fork 29
46 lines (35 loc) · 1.1 KB
/
topologyx.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: topologyx
on: [pull_request, merge_group, workflow_dispatch]
jobs:
workflow:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
python-version: ["3.10", "3.11", "3.12"]
steps:
- name: Checkout Codebase
uses: actions/checkout@v4
- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Cache Dependencies
id: cache-dependencies
uses: actions/cache@v4
with:
path: |
~/.cache/pypoetry
./.venv/
key: topologyx-${{ runner.os }}-${{ matrix.python-version }}-${{ hashFiles('poetry.lock') }}
- name: Setup Poetry
run: curl -sSL https://install.python-poetry.org | python3 -
- name: Install Dependencies
if: steps.cache-dependencies.outputs.cache-hit != 'true'
run: poetry install --sync --with dev,types
- name: Run Black
run: make black
- name: Run MyPy
run: make mypy
- name: Run Ruff
run: make ruff