From ddc5799aff645b65273110eef8fe0141130f9482 Mon Sep 17 00:00:00 2001 From: Saikat Karmakar <31238298+Aviksaikat@users.noreply.github.com> Date: Sun, 5 May 2024 07:05:55 +0000 Subject: [PATCH] build.yml updated & trying to automate the release --- .github/workflows/build.yml | 28 ++++++++++++++++------------ 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4048706..5836b15 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,6 +1,10 @@ name: Build -on: [push, pull_request] +on: + push: + branches: ["main"] + pull_request: + branches: ["main"] jobs: test: @@ -23,17 +27,17 @@ jobs: - name: Lint and typecheck run: | hatch run lint-check - # - name: Run Tests - # run: | - # hatch run test:pytest - # - name: coverage test - # run: | - # hatch run test:test-cov-xml - # - uses: codecov/codecov-action@v4 - # with: - # token: ${{ secrets.CODECOV_TOKEN }} - # fail_ci_if_error: true - # verbose: true + - name: Run Tests + run: | + hatch run test:pytest + - name: coverage test + run: | + hatch run test:test-cov-xml + - uses: codecov/codecov-action@v4 + with: + token: ${{ secrets.CODECOV_TOKEN }} + fail_ci_if_error: true + verbose: true release: runs-on: ubuntu-latest