From df53ad53f5bb3147c499e996506d3805c99ab755 Mon Sep 17 00:00:00 2001 From: "Noah D. Brenowitz" Date: Fri, 31 May 2024 20:44:29 -0700 Subject: [PATCH] fix --- .github/workflows/ci.yml | 31 +++++++++++++++++++++++++------ 1 file changed, 25 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 31091e6..c682d68 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,6 +9,30 @@ on: - main jobs: + lint: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: '3.9' + + - name: Install dependencies + run: | + apt-get update && apt-get install -y make + python -m pip install --upgrade pip + pip install pre-commit + + - name: Install pre-commit hooks + run: | + pre-commit install + + - name: Run lint + run: | + make lint build: runs-on: ubuntu-latest @@ -18,16 +42,11 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v2 - - name: Install dependencies - run: | - apt-get install -y build-essential - - name: lint - run: make lint - name: Build package run: | + apt-get update && apt-get install -y build-essential python -m pip install --upgrade pip pip install --no-build-isolation . - apt-get install -y build-essential - name: Run tests run: make unittest - name: coverage