[ENH] Fix failing unit tests #466
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Style checks" | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.number }}-${{ github.event.type }} | |
cancel-in-progress: true | |
on: | |
pull_request: | |
paths: | |
- "**.py" | |
- "**.pxd" | |
- "**.pyx" | |
push: | |
branches: [main] | |
paths: | |
- "**.py" | |
tags: | |
- "v*.*.*" | |
workflow_dispatch: | |
permissions: | |
contents: read # to fetch code (actions/checkout) | |
jobs: | |
style: | |
name: Formatting, lint, style, and type-checks | |
timeout-minutes: 10 | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
poetry-version: [1.3.0] | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Setup Python 3.10 | |
uses: actions/[email protected] | |
with: | |
python-version: "3.10" | |
architecture: "x64" | |
- name: Install packages for Ubuntu | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y libopenblas-dev libatlas-base-dev liblapack-dev | |
- name: Install Poetry ${{ matrix.poetry-version }} | |
uses: abatilo/[email protected] | |
with: | |
poetry-version: ${{ matrix.poetry-version }} | |
- name: Install Poetry Dynamic Versioning Plugin | |
run: pip install poetry-dynamic-versioning | |
- name: Install dependencies | |
run: poetry install --only style | |
# check formatting of the code style | |
- name: Check code formatting | |
run: poetry run poe format_check | |
# this applies various linting | |
- name: Lint codebase | |
run: poetry run poe lint | |
- name: Type check | |
run: poetry run poe type_check |