-
Notifications
You must be signed in to change notification settings - Fork 288
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update feature/perf from master (#6000)
There is a conflict in 'dune' files, have to make PR from fork to fix, and I cannot edit the origin repo on the other PR.
- Loading branch information
Showing
391 changed files
with
10,239 additions
and
11,839 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,7 @@ on: | |
- master | ||
- 'feature/**' | ||
- '*-lcm' | ||
merge_group: | ||
|
||
jobs: | ||
ocaml-format: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,9 +6,10 @@ on: | |
schedule: | ||
# run daily, this refreshes the cache | ||
- cron: "13 2 * * *" | ||
merge_group: | ||
|
||
concurrency: # On new push, cancel old workflows from the same PR, branch or tag: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
group: ${{ github.workflow }}-${{github.event_name}}-${{ github.event.pull_request.number || github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
|
@@ -18,7 +19,7 @@ jobs: | |
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: ["2.7", "3.11"] | ||
python-version: ["3.11"] | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
@@ -39,48 +40,11 @@ jobs: | |
|
||
- uses: pre-commit/[email protected] | ||
name: Run pre-commit checks (no spaces at end of lines, etc) | ||
if: ${{ matrix.python-version != '2.7' }} | ||
with: | ||
extra_args: --all-files --verbose --hook-stage commit | ||
env: | ||
SKIP: no-commit-to-branch | ||
|
||
- name: Install dependencies only needed for python 2 | ||
if: ${{ matrix.python-version == '2.7' }} | ||
run: pip install enum | ||
|
||
- name: Install dependencies only needed for python 3 | ||
if: ${{ matrix.python-version != '2.7' }} | ||
run: pip install opentelemetry-api opentelemetry-exporter-zipkin-json opentelemetry-sdk pandas pytype toml wrapt | ||
|
||
- name: Install common dependencies for Python ${{matrix.python-version}} | ||
run: pip install future mock pytest-coverage pytest-mock | ||
|
||
- name: Run Pytest for python 2 and get code coverage | ||
if: ${{ matrix.python-version == '2.7' }} | ||
run: > | ||
pytest | ||
--cov=scripts --cov=ocaml/xcp-rrdd | ||
scripts/ ocaml/xcp-rrdd -vv -rA | ||
--junitxml=.git/pytest${{matrix.python-version}}.xml | ||
--cov-report term-missing | ||
--cov-report xml:.git/coverage${{matrix.python-version}}.xml | ||
env: | ||
PYTHONDEVMODE: yes | ||
|
||
- name: Run Pytest for python 3 and get code coverage | ||
if: ${{ matrix.python-version != '2.7' }} | ||
run: > | ||
pytest | ||
--cov=scripts --cov=ocaml/xcp-rrdd --cov=python3/ | ||
scripts/ ocaml/xcp-rrdd python3/ -vv -rA | ||
--junitxml=.git/pytest${{matrix.python-version}}.xml | ||
--cov-report term-missing | ||
--cov-report xml:.git/coverage${{matrix.python-version}}.xml | ||
env: | ||
PYTHONDEVMODE: yes | ||
PYTHONPATH: "python3:python3/tests/stubs" | ||
|
||
- name: Upload coverage report to Coveralls | ||
uses: coverallsapp/github-action@v2 | ||
with: | ||
|
@@ -90,7 +54,6 @@ jobs: | |
parallel: true | ||
|
||
- uses: dciborow/[email protected] | ||
if: ${{ matrix.python-version != '2.7' }} | ||
with: | ||
reporter: github-pr-review | ||
level: warning | ||
|
@@ -99,8 +62,7 @@ jobs: | |
continue-on-error: true | ||
|
||
- name: Run pytype checks | ||
if: ${{ matrix.python-version != '2.7' }} | ||
run: ./pytype_reporter.py | ||
run: pip install pandas pytype toml && ./pytype_reporter.py | ||
env: | ||
PR_NUMBER: ${{ github.event.number }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.