diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..9a8f806 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,24 @@ +# This workflow will install Python dependencies, run tests and lint with a single version of Python + +name: CI + +on: [push, pull_request] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: Install dependencies + run: | + python --version + python -m pip install --upgrade pip + make install-dev-tools + - name: Test + run: | + make test + - name: check code + run: | + make run-check-code diff --git a/Makefile b/Makefile index d20d58f..8aba88c 100644 --- a/Makefile +++ b/Makefile @@ -35,5 +35,5 @@ install-dev-tools: pip install -r requirements-dev.txt run-check-code: - python -m black transcribe-batch/ transcribe-service/ + python -m black --check transcribe-batch/ transcribe-service/ python -m flake8 --ignore E501,W503 transcribe-batch/ transcribe-service/