Skip to content

ci: Added github workflows for automated ci #7

ci: Added github workflows for automated ci

ci: Added github workflows for automated ci #7

Workflow file for this run

name: CI Audit, Formatting & Linting
on:
pull_request:
types: [opened, reopened, synchronize]
branches:
- main
jobs:
build:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v5
- name: Install extra dependencies for a python 3.7.17 install
run: |
sudo apt-get update
sudo apt -y install --no-install-recommends liblzma-dev libbz2-dev libreadline-dev
- name: Install asdf cli
uses: asdf-vm/actions/setup@v4
- name: Install Python 3.7.17
run: |
asdf plugin add python
asdf install python 3.7.17
- name: Install Poetry and Java
uses: asdf-vm/actions/install@v4
- name: Cache Poetry virtualenv
uses: actions/cache@v4
with:
path: ~/.cache/pypoetry
key: ${{ runner.os }}-poetry-${{ hashFiles('**/poetry.lock') }}
restore-keys: |
${{ runner.os }}-poetry-
- name: Install lint dependencies
run: |
make install
- name: Run isort
run: poetry run isort src
- name: Run mypy
run: poetry run mypy src
- name: Run pylint
run: poetry run pylint src