Skip to content

test(ci): rename to test.yml + run on head sha #640

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

Merged
merged 9 commits into from
Feb 25, 2025
Merged
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
22 changes: 20 additions & 2 deletions .github/workflows/unit-tests.yml → .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Unit Tests
name: Tests

on:
push:
Expand All @@ -17,8 +17,11 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }}

- name: Setup environment
uses: ./.github/actions/setup-environment

- name: Run ATS and Tests
uses: ./.github/actions/run-ats
timeout-minutes: 15
Expand Down Expand Up @@ -48,10 +51,15 @@ jobs:
name: "Codemod tests ${{matrix.size}}: Sync Graph=${{matrix.sync_graph}}"
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}

- name: Setup environment
uses: ./.github/actions/setup-environment

- name: Cache oss-repos
uses: ./.github/actions/setup-oss-repos

- name: Run ATS and Tests
uses: ./.github/actions/run-ats
timeout-minutes: 15
Expand All @@ -66,11 +74,14 @@ jobs:
GITHUB_WORKSPACE: $GITHUB_WORKSPACE

parse-tests:
runs-on: ubuntu-latest-32
if: contains(github.event.pull_request.labels.*.name, 'parse-tests') || github.event_name == 'push' || github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest-32
environment: parse-tests
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}

- name: Setup environment
uses: ./.github/actions/setup-environment

Expand All @@ -91,10 +102,12 @@ jobs:
-n auto \
-o junit_suite_name="${{github.job}}" \
tests/integration/codemod/test_parse.py

- uses: ./.github/actions/report
with:
flag: no-flag
codecov_token: ${{ secrets.CODECOV_TOKEN }}

- name: Notify parse tests failure
uses: slackapi/[email protected]
if: failure() && github.event_name == 'push' && false
Expand Down Expand Up @@ -135,8 +148,12 @@ jobs:
runs-on: ubuntu-latest-16
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}

- name: Setup environment
uses: ./.github/actions/setup-environment

- name: Test with pytest
timeout-minutes: 5
env:
Expand All @@ -147,6 +164,7 @@ jobs:
-n auto \
-o junit_suite_name="${{github.job}}" \
tests/integration/codegen

- uses: ./.github/actions/report
with:
flag: integration-tests
Expand Down