Skip to content

Commit e05983c

Browse files
authored
v23.01.00
v23.01.00
2 parents c50fdd4 + 7f81b29 commit e05983c

File tree

196 files changed

+12282
-5143
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

196 files changed

+12282
-5143
lines changed

.github/workflows/ci.yml

Lines changed: 68 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
name: Build legate.core
2-
on:
2+
on:
33
push:
44
branches-ignore:
55
- gh-pages # deployment target branch (this workflow should not exist on that branch anyway)
66
pull_request:
77
branches-ignore:
88
- gh-pages # deployment target branch (this workflow should not exist on that branch anyway)
9+
schedule:
10+
# * is a special character in YAML so you have to quote this string
11+
- cron: '0 */6 * * *'
912
env:
1013
COMMIT: ${{ github.event.pull_request.head.sha || github.sha }}
1114
PROJECT: github-core-ci
@@ -57,7 +60,69 @@ jobs:
5760
if: always()
5861
- name: Upload Build Log
5962
if: always()
60-
uses: actions/upload-artifact@v2
63+
uses: actions/upload-artifact@v3
6164
with:
6265
name: build-log
63-
path: ./**/${{ env.COMMIT }}-build.log.gpg
66+
path: ./**/${{ env.COMMIT }}-build.log.gpg
67+
test:
68+
if: ${{ github.repository == 'nv-legate/legate.core' }}
69+
runs-on: self-hosted
70+
needs: build
71+
strategy:
72+
fail-fast: false
73+
matrix:
74+
include:
75+
- {name: mypy, options: mypy, log: mypy}
76+
- {name: pytest unit tests, options: unit, log: pytest}
77+
name: ${{ matrix.name }}
78+
steps:
79+
- name: Dump GitHub context
80+
env:
81+
GITHUB_CONTEXT: ${{ toJSON(github) }}
82+
run: echo "$GITHUB_CONTEXT"
83+
- name: Dump job context
84+
env:
85+
JOB_CONTEXT: ${{ toJSON(job) }}
86+
run: echo "$JOB_CONTEXT"
87+
- name: Dump steps context
88+
env:
89+
STEPS_CONTEXT: ${{ toJSON(steps) }}
90+
run: echo "$STEPS_CONTEXT"
91+
- name: Dump runner context
92+
env:
93+
RUNNER_CONTEXT: ${{ toJSON(runner) }}
94+
run: echo "$RUNNER_CONTEXT"
95+
- name: Dump strategy context
96+
env:
97+
STRATEGY_CONTEXT: ${{ toJSON(strategy) }}
98+
run: echo "$STRATEGY_CONTEXT"
99+
- name: Dump matrix context
100+
env:
101+
MATRIX_CONTEXT: ${{ toJSON(matrix) }}
102+
run: echo "$MATRIX_CONTEXT"
103+
- name: Prepare
104+
run: |
105+
/data/github-runner/legate-bin/setup.sh
106+
cd legate-ci/github-ci/legate.core
107+
if [[ ! -d ngc-artifacts ]]
108+
then
109+
mkdir ngc-artifacts
110+
else
111+
rm -rf ngc-artifacts/*
112+
fi
113+
- name: Test
114+
run: |
115+
cd legate-ci/github-ci/legate.core
116+
./test.sh ${{ matrix.options }} > ${COMMIT}-test-${{ matrix.log }}.log 2>&1
117+
- name: Process output
118+
if: always()
119+
run: |
120+
cd legate-ci/github-ci/legate.core
121+
/data/github-runner/legate-bin/encrypt.sh ${COMMIT}-test-${{ matrix.log }}.log
122+
cat *artifacts/*/*
123+
- name: Upload Log
124+
if: always()
125+
uses: actions/upload-artifact@v3
126+
with:
127+
name: test-${{ matrix.log }}-log
128+
path: ./**/${{ env.COMMIT }}-test-${{ matrix.log }}.log.gpg

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,5 @@ config.mk
3535
.vscode
3636
_cmake_test_compile
3737
!cmake/versions.json
38+
legate.core.code-workspace
39+

.pre-commit-config.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
11
repos:
22
- repo: https://github.com/PyCQA/isort
3-
rev: 5.10.1
3+
rev: 5.11.4
44
hooks:
55
- id: isort
66
- repo: https://github.com/psf/black
7-
rev: 22.8.0
7+
rev: 22.12.0
88
hooks:
99
- id: black
1010
- repo: https://github.com/PyCQA/flake8
11-
rev: 5.0.4
11+
rev: 6.0.0
1212
hooks:
1313
- id: flake8
1414
- repo: https://github.com/pre-commit/mirrors-clang-format
15-
rev: 'v14.0.6'
15+
rev: 'v15.0.7'
1616
hooks:
1717
- id: clang-format
1818
files: \.(cu|cuh|h|cc|inl)$
1919
types_or: []
2020
- repo: https://github.com/pre-commit/mirrors-mypy
21-
rev: 'v0.971'
21+
rev: 'v0.991'
2222
hooks:
2323
- id: mypy
2424
pass_filenames: false
25-
args: ['legate']
26-
additional_dependencies: [numpy]
25+
args: ['legate', 'tests']
26+
additional_dependencies: [numpy,pytest,pytest_mock]
2727
default_language_version:
2828
python: python3

0 commit comments

Comments
 (0)