Skip to content

Commit

Permalink
- Cancel any previous workflow runs
Browse files Browse the repository at this point in the history
- Upload testing to codecov
  • Loading branch information
JeanWi committed Nov 26, 2024
1 parent 627fc0d commit 3d21c50
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/00develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@ on:
pull_request:
branches:
- 'develop'
push:

jobs:
pin_requirements:
uses: ./.github/workflows/pin_requirements.yml
secrets: inherit
autoformatting:
needs: pin_requirements
uses: ./.github/workflows/autoformatting.yml
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/autoformatting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ name: Autoformatting
on:
workflow_call:

# Cancel any in-progress runs when a new run is triggered
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
lint:
runs-on: ubuntu-latest
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pin_requirements.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ jobs:
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
token: ${{ secrets.PAT_TOKEN }}

- name: Set up Python
uses: actions/setup-python@v4
Expand All @@ -33,8 +34,7 @@ jobs:
- name: Commit and push changes
run: |
git config user.name "GitHub Actions"
git config user.email "actions@github.com"
git config user.email "AdOpT-Development@solisservices.onmicrosoft.com"
git add requirements.txt
git commit -m "Update requirements.txt generated by Poetry"
git push
5 changes: 5 additions & 0 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ name: Testing
on:
workflow_call:

# Cancel any in-progress runs when a new run is triggered
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
test:
runs-on: ${{ matrix.os }}
Expand Down

0 comments on commit 3d21c50

Please sign in to comment.