Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix[ci]: integration pipeline merge commit #168

Merged
merged 5 commits into from
Feb 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/.pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:
jobs:
pre-commit:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
Expand Down
15 changes: 7 additions & 8 deletions .github/workflows/integration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ jobs:
integration:
name: "integration tests (Alchemy: fork mode and Sepolia)"
runs-on: ubuntu-latest
timeout-minutes: 5
steps:

# given we use the pull_request_trigger, only allow contributors to run tests with secrets
Expand All @@ -27,18 +28,16 @@ jobs:
core.setFailed(username + ' is not a contributor');
}

# specifically check out the head ref, not the default base ref. Depth is needed for the merge step.
# this will check out the base branch, not the head branch
- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
fetch-depth: 2
fetch-depth: 0 # we need the history to be able to merge

# we want to run the tests on a merge commit, so we need to merge the base branch into the head branch
- name: Merge base branch
if: github.event_name == 'pull_request_target'
# now merge the head branch into the base branch, so we can run the tests with the head branch's changes
- name: Merge head branch
run: |
git fetch origin ${{ github.base_ref }}
git merge origin/${{ github.base_ref }} --no-edit
git fetch origin ${{ github.head_ref }}
git merge origin/${{ github.head_ref }} --no-edit

- name: Setup Python 3.11
uses: actions/setup-python@v4
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ "3.10", "3.11" ]
python-version: [ "3.10", "3.11", "3.12" ]

name: "unit tests: python ${{ matrix.python-version }}"
timeout-minutes: 5

steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -48,6 +49,7 @@ jobs:
anvil:
name: "integration tests (anvil)"
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v4

Expand Down
Loading