Skip to content

Commit

Permalink
build.yml updated & trying to automate the release
Browse files Browse the repository at this point in the history
  • Loading branch information
Aviksaikat committed May 5, 2024
1 parent ed72636 commit ddc5799
Showing 1 changed file with 16 additions and 12 deletions.
28 changes: 16 additions & 12 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: Build

on: [push, pull_request]
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]

jobs:
test:
Expand All @@ -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
Expand Down

0 comments on commit ddc5799

Please sign in to comment.