File tree Expand file tree Collapse file tree 9 files changed +137
-219
lines changed
Expand file tree Collapse file tree 9 files changed +137
-219
lines changed Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ name : report
2+ description : " Publish Test Reports"
3+ inputs :
4+ flag :
5+ required : true
6+ description : " Relevant codecov flag"
7+ runs :
8+ using : " composite"
9+ steps :
10+ - name : Upload test results to Codecov
11+ if : ${{ !cancelled() }}
12+ uses : codecov/test-results-action@v1
13+ with :
14+ token : ${{ secrets.CODECOV_TOKEN }}
15+ files : build/test-results/test/TEST.xml
16+ - name : Upload coverage reports to Codecov
17+ if : (success() || failure()) # always upload coverage reports even if the tests fail
18+ continue-on-error : true
19+ 20+ with :
21+ token : ${{ secrets.CODECOV_TOKEN }}
22+ files : coverage.xml
23+ flags : ${{ inputs.flag }}
24+ plugins : pycoverage,compress-pycoverage
Original file line number Diff line number Diff line change 1+ name : ' Run ATS'
2+ description : ' Run Automated Test Selection to determine which tests to run'
3+
4+ inputs :
5+ default_tests :
6+ description : ' Default test path to run'
7+ required : true
8+ codecov_static_token :
9+ description : ' Codecov static token'
10+ required : true
11+ codecov_token :
12+ description : ' Codecov token'
13+ required : true
14+ collect_args :
15+ description : ' Additional arguments for test collection'
16+ required : false
17+ default : ' '
18+ ats_collect_args :
19+ description : ' Additional arguments for ATS collection'
20+ required : false
21+ default : ' '
22+ base_sha :
23+ description : ' Base SHA for comparison'
24+ required : true
25+ codecov_flags :
26+ description : ' Flags for codecov upload'
27+ required : false
28+ default : ' smart-tests'
29+ job_name :
30+ description : ' Name of the job for junit reporting'
31+ required : true
32+
33+ runs :
34+ using : " composite"
35+ steps :
36+ - name : Run ATS
37+ shell : bash
38+ env :
39+ BASE_SHA : ${{ inputs.base_sha }}
40+ DEFAULT_TESTS : ${{ inputs.default_tests }}
41+ CODECOV_STATIC_TOKEN : ${{ inputs.codecov_static_token }}
42+ CODECOV_TOKEN : ${{ inputs.codecov_token }}
43+ COLLECT_ARGS : ${{ inputs.collect_args }}
44+ ATS_COLLECT_ARGS : ${{ inputs.ats_collect_args }}
45+ run : |
46+ uv run codecovcli create-commit -t ${{ inputs.codecov_token }}
47+ uv run codecovcli create-report -t ${{ inputs.codecov_token }}
48+ bash ./.circleci/ats.sh
49+
50+ - name : Run tests
51+ shell : bash
52+ run : |
53+ TESTS_TO_RUN=$(cat codecov_ats/tests_to_run.txt)
54+ echo $TESTS_TO_RUN | xargs uv run pytest --cov \
55+ -o junit_suite_name="${{ inputs.job_name }}" \
56+ -n auto \
57+ -vv \
58+ --cov \
59+ --cov-append \
60+ --cov-report=xml \
61+ ${{ inputs.collect_args }}
62+
63+ - uses : ./.github/actions/actions/report
64+ with :
65+ flag : ${{ inputs.codecov_flags }}
File renamed without changes.
File renamed without changes.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1111 - develop
1212 - legacy/.*
1313 workflow_dispatch :
14+
1415permissions :
1516 contents : read
1617
1718jobs :
18- build :
19+ build_wheels :
20+ name : Build wheels on ${{ matrix.os }}
21+ runs-on : ${{ matrix.os }}
1922 strategy :
2023 matrix :
21- os : [ ubuntu-latest-8, macos-latest]
22- python : [3.12, 3.13 ]
23- runs-on : ${{ matrix.os }}
24+ os : [ubuntu-latest-8, macos-latest]
25+
2426 steps :
2527 - uses : actions/checkout@v4
2628 with :
2729 fetch-depth : 0
2830 ref : ${{ github.event.pull_request.head.ref || github.ref }}
31+
2932 - name : Setup backend
3033 uses : ./.github/actions/setup-backend
3134 with :
32- python-version : ${{ matrix.python }}
35+ python-version : " 3.12"
36+
3337 - name : Get history and tags for SCM versioning to work
3438 run : |
3539 git branch
3640 git fetch --depth=1 origin +refs/tags/*:refs/tags/*
3741
38- - name : Build release distributions
39- run : |
40- uv build --wheel
41- uv build --package codegen-git --wheel
42- uv build --package codegen-utils --wheel
43- cd graph-sitter-types
44- uv build --package graph-sitter-types --wheel --sdist
42+ - name : Build wheels
43+ 4544 env :
4645 HATCH_BUILD_HOOKS_ENABLE : true
47- - name : Upload distributions
48- uses : actions/upload-artifact@v4
46+
47+ - uses : actions/upload-artifact@v4
4948 with :
50- name : wheels-${{ matrix.os }}-${{ matrix.python }}
51- path : dist/
49+ name : wheels-${{ matrix.os }}
50+ path : ./wheelhouse/*.whl
5251
5352 release :
54- needs : build
53+ needs : build_wheels
5554 runs-on : ubuntu-latest-8
5655 permissions :
5756 contents : write
You can’t perform that action at this time.
0 commit comments