Skip to content

Commit

Permalink
update makefile and github ci workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisPappalardo committed Jul 16, 2024
1 parent a39c516 commit cff407a
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
30 changes: 30 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: ci

on:
pull_request:
push:
branches:
- "**"

jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- name: Checkout code repository
uses: actions/checkout@v4
- name: Run pre-commit
run: pre-commit run --all-files

test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.10"]
steps:
- name: Checkout code repository
uses: actions/checkout@v4
- name: Run unit tests
run: pytest
with:
python-version: ${{ matrix.python-version }}
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.PHONY: clean clean-build clean-pyc clean-test coverage dist docs help install lint lint/flake8 lint/black
.PHONY: clean clean-build clean-pyc clean-test coverage dist docs help install lint lint/black lint/flake8 pre-commit test test-all
.DEFAULT_GOAL := help

define BROWSER_PYSCRIPT
Expand Down

0 comments on commit cff407a

Please sign in to comment.