Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setup ci #4

Merged
merged 13 commits into from
Jun 1, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix
nbren12 committed Jun 1, 2024
commit df53ad53f5bb3147c499e996506d3805c99ab755
31 changes: 25 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -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