Skip to content

Updates & polishing

Updates & polishing #6

# This workflow will install Python dependencies using Poetry, run tests, and lint with multiple Python versions
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: Python Package CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11"]
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install Poetry
run: |
python -m pip install --upgrade pip
pip install poetry
- name: Install dependencies with Poetry
run: |
poetry install --no-interaction --no-root
- name: Lint with flake8 and black
run: |
# poetry run flake8 --max-line-length 120 ldscore test
poetry run black --check ldscore test
- name: Run tests with nose2
run: |
poetry run nose2
- name: Run type checks with mypy
run: |
# poetry run mypy ldscore