Skip to content

Commit b86dbce

Browse files
dionhaefnerxalelaxheitorPBapaleyesangela-ko
committed
Initial commit
Co-authored-by: Alessandro Angioi <alessandro.angioi@simulation.science> Co-authored-by: Heitor Pascoal de Bittencourt <heitor.bittencourt@simulation.science> Co-authored-by: Andrei Paleyes <andrei.paleyes@simulation.science> Co-authored-by: Angela Ko <angela.ko@simulation.science> Co-authored-by: Niklas Heim <niklas.heim@simulation.science> Co-authored-by: Jonathan Brodrick <jonathan.brodrick@simulation.science> Co-authored-by: Marcus Isnard <marcus.isnard@simulation.science> Co-authored-by: Andrin Rehmann <andrin.rehmann@simulation.science> Co-authored-by: Matteo Salvador <matteo.salvador@simulation.science>
0 parents  commit b86dbce

File tree

208 files changed

+29300
-0
lines changed

Some content is hidden

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

208 files changed

+29300
-0
lines changed
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: "Bug Report"
2+
description: Report a new bug encountered while using Tesseract.
3+
labels: [
4+
"bug"
5+
]
6+
7+
body:
8+
- type: textarea
9+
id: description
10+
attributes:
11+
label: "Description"
12+
description: Please describe your issue in as much detail as necessary. Include relevant information that you think will help us understand the problem.
13+
placeholder: |
14+
A clear and concise description of the bug and what you expected to happen.
15+
validations:
16+
required: true
17+
18+
- type: textarea
19+
id: reprod
20+
attributes:
21+
label: "Steps to reproduce"
22+
description: Please provide detailed steps for reproducing the issue. Include any code snippets or commands that you used when the issue occurred.
23+
value: |
24+
```bash
25+
$ tesseract run ...
26+
```
27+
validations:
28+
required: true
29+
30+
- type: textarea
31+
id: logs
32+
attributes:
33+
label: "Logs"
34+
description: Please copy and paste any relevant log output. This will be automatically formatted into code, so no need for backticks.
35+
render: bash
36+
validations:
37+
required: false
38+
39+
- type: dropdown
40+
id: os
41+
attributes:
42+
label: "OS"
43+
description: What is the impacted environment?
44+
multiple: true
45+
options:
46+
- Windows
47+
- Linux
48+
- Mac
49+
validations:
50+
required: true
51+
52+
- type: textarea
53+
id: tesseractVersion
54+
attributes:
55+
label: Tesseract version
56+
value: |
57+
Paste the output of `tesseract --version` here.
58+
validations:
59+
required: true
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: "Feature Request"
2+
description: Create a new feature request
3+
labels: [
4+
"enhancement"
5+
]
6+
7+
body:
8+
- type: textarea
9+
id: summary
10+
attributes:
11+
label: "Summary"
12+
description: Provide a brief summary of the requested feature.
13+
placeholder: |
14+
A clear and concise description of what the feature is.
15+
validations:
16+
required: true
17+
18+
- type: textarea
19+
id: neccesity
20+
attributes:
21+
label: "Why is this needed?"
22+
description: Provide an explanation of why this feature is needed. Who is it for? What problem does it solve? Why do none of the existing features solve this problem?
23+
placeholder: |
24+
A clear and concise description of what itch this feature scratches.
25+
validations:
26+
required: true
27+
28+
- type: textarea
29+
id: basic_example
30+
attributes:
31+
label: "Usage example"
32+
description: Please describe how end users would interact with the proposed feature. Include any code snippets or output examples that you think will help us understand.
33+
placeholder: |
34+
```bash
35+
$ tesseract run ... --myfeature
36+
<desired output>
37+
```
38+
validations:
39+
required: true

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
blank_issues_enabled: true
2+
contact_links:
3+
- name: Support Request
4+
url: https://si-tesseract.discourse.group/
5+
about: Support request or question relating to Tesseracts.

.github/dependabot.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
version: 2
2+
3+
registries:
4+
pl-internal-dependencies:
5+
type: python-index
6+
url: https://pkgs.dev.azure.com/pasteur-labs/d89796ea-4a5b-48aa-9930-4cebcdc9d64a/_packaging/internal/pypi/simple/
7+
username: "pasteur-labs"
8+
password: ${{secrets.PL_INTERNAL_TOOLS_AZ_DEVOPS_TOKEN}}
9+
public:
10+
type: python-index
11+
url: https://pypi.org/simple
12+
13+
updates:
14+
- package-ecosystem: pip
15+
directory: "/"
16+
schedule:
17+
interval: "daily"
18+
timezone: "America/New_York"
19+
open-pull-requests-limit: 10
20+
# This marks our internal registry as trusted
21+
insecure-external-code-execution: allow
22+
registries:
23+
- pl-internal-dependencies
24+
- public
25+
26+
ignore:
27+
- dependency-name: "*"
28+
update-types: ["version-update:semver-patch"]
29+
30+
commit-message:
31+
prefix: chore
32+
33+
- package-ecosystem: github-actions
34+
directory: "/"
35+
schedule:
36+
interval: "weekly"
37+
timezone: "America/New_York"
38+
open-pull-requests-limit: 10
39+
40+
groups:
41+
actions:
42+
patterns:
43+
- "*"
44+
45+
ignore:
46+
- dependency-name: "*"
47+
update-types: ["version-update:semver-patch"]
48+
49+
commit-message:
50+
prefix: ci

.github/pull_request_template.md

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
<!--
2+
Please use a PR title that conforms to *conventional commits*: "<commit_type>: Describe your change"; for example: "fix: prevent race condition". Some other commit types are: fix, feat, ci, doc, refactor...
3+
For a full list of commit types visit https://www.conventionalcommits.org/en/v1.0.0-beta.2/
4+
-->
5+
6+
#### Relevant issue or PR
7+
<!-- If the changes resolve an issue or follow some other PR, link to them here. Only link something if it is directly relevant. -->
8+
9+
#### Description of changes
10+
<!-- Add a high-level description of changes, focusing on the *what* and *why*. -->
11+
12+
#### Testing done
13+
<!-- Describe how the changes were tested; e.g., "CI passes", "Tested manually in stagingrepo#123", screenshots of a terminal session that verify the changes, or any other evidence of testing the changes. -->
14+
15+
#### License
16+
17+
- [ ] By submitting this pull request, I confirm that my contribution is made under the terms of the [Apache 2.0 license](https://pasteurlabs.github.io/tesseract/LICENSE).
18+
- [ ] I sign the Developer Certificate of Origin below by adding my name and email address to the `Signed-off-by` line.
19+
20+
<details>
21+
<summary><b>Developer Certificate of Origin</b></summary>
22+
23+
```text
24+
Developer Certificate of Origin
25+
Version 1.1
26+
27+
Copyright (C) 2004, 2006 The Linux Foundation and its contributors.
28+
29+
Everyone is permitted to copy and distribute verbatim copies of this
30+
license document, but changing it is not allowed.
31+
32+
33+
Developer's Certificate of Origin 1.1
34+
35+
By making a contribution to this project, I certify that:
36+
37+
(a) The contribution was created in whole or in part by me and I
38+
have the right to submit it under the open source license
39+
indicated in the file; or
40+
41+
(b) The contribution is based upon previous work that, to the best
42+
of my knowledge, is covered under an appropriate open source
43+
license and I have the right under that license to submit that
44+
work with modifications, whether created in whole or in part
45+
by me, under the same open source license (unless I am
46+
permitted to submit under a different license), as indicated
47+
in the file; or
48+
49+
(c) The contribution was provided directly to me by some other
50+
person who certified (a), (b) or (c) and I have not modified
51+
it.
52+
53+
(d) I understand and agree that this project and the contribution
54+
are public and that a record of the contribution (including all
55+
personal information I submit with it, including my sign-off) is
56+
maintained indefinitely and may be redistributed consistent with
57+
this project or the open source license(s) involved.
58+
```
59+
60+
</details>
61+
62+
Signed-off-by: [YOUR NAME] <[YOUR EMAIL]>

.github/workflows/build_docs.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Build documentation
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
8+
jobs:
9+
test-docs:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v4
15+
16+
- name: Install system requirements
17+
run: |
18+
sudo apt-get update
19+
sudo apt-get install -y pandoc
20+
21+
- name: Setup Python environment
22+
uses: actions/setup-python@v5
23+
with:
24+
python-version: '3.12'
25+
26+
- name: Install doc requirements
27+
run: |
28+
pip install .[dev] -r requirements.txt
29+
pip install -r docs/requirements.txt
30+
31+
- name: Build required examples
32+
run: |
33+
tesseract build examples/unit_tesseracts/helloworld --tag latest
34+
tesseract build examples/unit_tesseracts/vectoradd --tag latest
35+
36+
- name: Build docs
37+
run: |
38+
cd docs
39+
export SPHINXOPTS="-W" # treat warnings as errors
40+
make html
41+
42+
- name: Upload HTML files
43+
uses: actions/upload-artifact@v4
44+
if: ${{ inputs.artifact_name }}
45+
with:
46+
name: ${{ inputs.artifact_name }}
47+
path: docs/build/html
48+
if-no-files-found: error
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: "Lint PR"
2+
3+
on:
4+
pull_request_target:
5+
types:
6+
- opened
7+
- edited
8+
- synchronize
9+
- reopened
10+
11+
permissions:
12+
pull-requests: read
13+
14+
jobs:
15+
main:
16+
name: Validate PR title
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: amannn/action-semantic-pull-request@v5
20+
env:
21+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
22+
with:
23+
types: |
24+
fix
25+
feat
26+
doc
27+
perf
28+
refactor
29+
test
30+
chore
31+
ci
32+
security
33+
scopes: |
34+
cli
35+
engine
36+
sdk
37+
example
38+
runtime
39+
deps
40+
requireScope: false

.github/workflows/get_coverage.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Get coverage
2+
3+
on:
4+
pull_request:
5+
6+
push:
7+
branches:
8+
- main
9+
10+
jobs:
11+
coverage:
12+
runs-on: ubuntu-latest
13+
14+
permissions:
15+
pull-requests: write
16+
contents: read
17+
id-token: write
18+
19+
steps:
20+
- name: Set up Git repository
21+
uses: actions/checkout@v4
22+
23+
- name: Set up custom SSH key
24+
uses: webfactory/ssh-agent@v0.9.0
25+
with:
26+
ssh-private-key: ${{ secrets.ORG_DEPLOY_KEY }}
27+
28+
- name: Set up Python
29+
uses: actions/setup-python@v5
30+
with:
31+
python-version: '3.12'
32+
33+
- name: Install package
34+
run: |
35+
pip install -e .[dev] -r requirements-dev.txt
36+
37+
- name: Run test suite
38+
run: |
39+
set -o pipefail
40+
pytest \
41+
--skip-endtoend \
42+
--cov-report=term-missing:skip-covered \
43+
--cov=tesseract --cov=tesseract_runtime \
44+
| tee pytest-coverage.txt
45+
46+
- name: Upload coverage reports to Codecov
47+
uses: codecov/codecov-action@v5.3.1
48+
with:
49+
token: ${{ secrets.CODECOV_TOKEN }}
50+
slug: pasteurlabs/tesseract-core

0 commit comments

Comments
 (0)