diff --git a/.github/workflows/app.yml b/.github/workflows/app.yml index cf185ce..c34b357 100644 --- a/.github/workflows/app.yml +++ b/.github/workflows/app.yml @@ -1,13 +1,9 @@ name: Python CI -on: - push: - branches: [ main ] - pull_request: - branches: [ main ] +on: [push, pull_request] jobs: - lint-and-test: + build: runs-on: ubuntu-latest strategy: matrix: @@ -15,10 +11,15 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v3 + + - name: Set up Node.js + uses: actions/setup-node@v3 + with: + node-version: '20' - name: Set up Python - uses: actions/setup-python@v2 + uses: actions/setup-python@v3 with: python-version: ${{ matrix.python-version }} diff --git a/Makefile b/Makefile index c9db419..cd9cdf3 100644 --- a/Makefile +++ b/Makefile @@ -11,4 +11,7 @@ test: ## Run tests pytest -s pylint: - pylint --rcfile=.pylintrc src \ No newline at end of file + pylint --rcfile=.pylintrc src + +coverage: ## Run tests with coverage + pytest --cov=src --cov-report=term-missing \ No newline at end of file