Skip to content

Commit

Permalink
ci: Run tests on release branches (#235)
Browse files Browse the repository at this point in the history
Co-authored-by: Unique-Divine <realuniquedivine@gmail.com>
  • Loading branch information
AnishP15 and Unique-Divine authored Jul 9, 2023
1 parent 9bf955b commit 74cb5ce
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 15 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
name: "Linting"
on:
pull_request:
branches: ["master"]
push:
branches: ["master"]
branches: ["main", "release/*"]
pull_request:
branches: ["main", "release/*"]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.head_ref }}
cancel-in-progress: ${{ ! (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/heads/release/')) }}
cancel-in-progress: ${{ ! (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/release/')) }}

jobs:
lint-py:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/notebooks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
schedule:
- cron: "0 0 * * *"
pull_request:
branches: ["master"]
branches: ["main"]
paths:
[
"**.py",
Expand All @@ -13,7 +13,7 @@ on:
".github/workflows/pytests.yml",
]
push:
branches: ["master"]
branches: ["main"]
paths:
[
"**.py",
Expand All @@ -24,7 +24,7 @@ on:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.head_ref }}
cancel-in-progress: ${{ ! (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/heads/release/')) }}
cancel-in-progress: ${{ ! (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/release/')) }}

jobs:
tests:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
name: Build and publish Python 🐍 distributions 📦 to PyPI
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/checkout@main

- name: Set up Python 3.7.13
uses: actions/setup-python@v3
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/pytests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: "E2E 🐍 tests"

on:
pull_request:
branches: ["master"]
branches: ["main", "release/*"]
paths:
[
"**.py",
Expand All @@ -11,7 +11,7 @@ on:
".github/workflows/pytests.yml",
]
push:
branches: ["master"]
branches: ["main", "release/*"]
paths:
[
"**.py",
Expand All @@ -22,7 +22,7 @@ on:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.head_ref }}
cancel-in-progress: ${{ ! (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/heads/release/')) }}
cancel-in-progress: ${{ ! (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/release/')) }}

jobs:
tests:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Publish Python 🐍 distribution 📦 to PyPI

on:
push:
branches: ["master", "release-test"]
branches: ["main", "release-test"]

jobs:
publish:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/scripts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: "py-sdk/scripts"

on:
pull_request:
branches: ["master"]
branches: ["main"]
paths:
[
"scripts",
Expand All @@ -14,7 +14,7 @@ on:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.head_ref }}
cancel-in-progress: ${{ ! (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/heads/release/')) }}
cancel-in-progress: ${{ ! (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/release/')) }}

jobs:
localnet:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/testnet-notebook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.head_ref }}
cancel-in-progress: ${{ ! (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/heads/release/')) }}
cancel-in-progress: ${{ ! (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/release/')) }}

jobs:
tests:
Expand Down

0 comments on commit 74cb5ce

Please sign in to comment.