Skip to content

chore: add basic project setup & CI #4

chore: add basic project setup & CI

chore: add basic project setup & CI #4

Workflow file for this run

name: Continuous Integration
on:
pull_request:
jobs:
quality-checks:
runs-on: ubuntu
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.8
- name: Install and configure Poetry
uses: snok/install-poetry@v1
with:
version: 1.6.1
in-project: true
prefer-active-python: true
- name: Install Python dependencies
run: |
just poetry-install
- name: Run style & code checks
run: |
just check
unit-tests:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
python: [ 3.8, 3.9, "3.10", "3.11" ]
os: [ ubuntu-latest, macos-latest, windows-latest ]
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v3
- name: Set up Python v${{ matrix.python }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
- name: Install and configure Poetry
uses: snok/install-poetry@v1
with:
version: 1.6.1
virtualenvs-create: true
virtualenvs-in-project: true
- name: Install Python dependencies
run: |
just poetry-install
- name: Run unit-tests
run: |
source $VENV # see https://github.com/snok/install-poetry#running-on-windows
just unit-tests