Skip to content

Add github CI config and project MakeFile #3

Add github CI config and project MakeFile

Add github CI config and project MakeFile #3

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
linter:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.12"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install poetry
poetry install
- name: Run isort
run: make isort
env:
POETRY_VIRTUALENVS_IN_PROJECT: true
- name: Run black
run: make black
env:
POETRY_VIRTUALENVS_IN_PROJECT: true
tests:
runs-on: ubuntu-latest
needs: linter
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.12"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install poetry
poetry install
- name: Run tests
run: make run_tests
env:
POETRY_VIRTUALENVS_IN_PROJECT: true