Skip to content

docs: Cleaned up CHANGELOG.md #6

docs: Cleaned up CHANGELOG.md

docs: Cleaned up CHANGELOG.md #6

Workflow file for this run

# This workflow will do Continous Integration (CI) and Continous Deployment (CD).
# It will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see:
# https://py-pkgs.org/08-ci-cd
# https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: ci-tests
# Controls when the workflow will run
on: [push, pull_request]
# A workflow run is made up of one or more jobs that can run
# sequentially or in parallel
jobs:
ci:
# Set up operating system
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
# Define job steps
steps:
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Check-out karney repository
uses: actions/checkout@v4
- name: Install Poetry
uses: snok/install-poetry@v1
- name: Update PATH
run: echo "$HOME/.local/bin" >> $GITHUB_PATH
- name: Update Poetry configuration
run: poetry config virtualenvs.create false
- name: Install karney with dependencies
run: poetry install --with dev --no-interaction
- name: Lint with ruff
run: |
# stop the build if there are Python syntax errors or undefined names
ruff check ./src/
- name: Test with pytest
run: poetry run pytest tests/ --cov=karney --cov-report=xml