-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🚨 test(integration): reproducibility with PyTorch (#10)
- Loading branch information
1 parent
48984b7
commit 221043b
Showing
27 changed files
with
1,281 additions
and
94 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
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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: integration-tests | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- main | ||
- release** | ||
|
||
jobs: | ||
MATorchTests: | ||
runs-on: self-hosted | ||
defaults: | ||
run: | ||
shell: bash -l {0} | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Setup Conda Environment | ||
run: | | ||
conda create --name matorch-ci python=3.7 | ||
conda env list | ||
- name: Install Python Library | ||
working-directory: Tests/MATorchTests/Base | ||
run: | | ||
conda activate matorch-ci | ||
pip="$(dirname `which python`)"/pip | ||
$pip install -e . | ||
- name: Test | ||
run: | | ||
conda activate matorch-ci | ||
swift test --filter MATorchTests | ||
- name: Remove Conda Environment | ||
if: always() | ||
run: conda env remove --name matorch-ci |
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 |
---|---|---|
|
@@ -3,7 +3,7 @@ name: unit-tests | |
on: [push] | ||
|
||
jobs: | ||
MAKit: | ||
MAKitTests: | ||
runs-on: self-hosted | ||
|
||
steps: | ||
|
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Below is a list of people and organizations that have contributed | ||
# to the MAKit project. Names should be added to the list like so: | ||
# | ||
# Name/Organization <email address> | ||
|
||
Jean-François Reboud <jean-francois.reboud@owkin.com> |
Validating CODEOWNERS rules …
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# Below is a list of MAKit code owners who should review changes | ||
# before delivering into the release. | ||
|
||
# | ||
# Code owning should propagate to contributers upon request. | ||
|
||
* @jean-francoisreboud | ||
* @jean-francoisreboud |
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 |
---|---|---|
@@ -0,0 +1,84 @@ | ||
# Code of Conduct | ||
|
||
## Our Pledge | ||
|
||
In the interest of fostering an open and welcoming environment, we as | ||
contributors and maintainers pledge to make participation in our | ||
project and our community a harassment-free experience for everyone, | ||
regardless of age, body size, disability, ethnicity, sex characteristics, | ||
gender identity and expression, level of experiencee, education, | ||
socio-economic status, nationality, personal appearance, race, religion, | ||
or sexual identity and orientation. | ||
|
||
## Our Standards | ||
|
||
Examples of behavior that contributes to creating a positive environment | ||
include: | ||
|
||
- Using welcoming and inclusive language | ||
- Being respectful of differing viewpoints and experiences | ||
- Gracefully accepting constructive criticism | ||
- Focusing on what is best for the community | ||
- Showing empathy towards other community members | ||
|
||
Examples of unacceptable behavior by participants include: | ||
|
||
- The use of sexualized language or imagery and unwelcome sexual attention | ||
or advances | ||
- Trolling, insulting/derogatory comments, and personal or political attacks | ||
- Public or private harassment | ||
- Publishing others’ private information, | ||
such as a physical or electronic address, without explicit permission | ||
- Other conduct which could reasonably be considered inappropriate | ||
in a professional setting | ||
|
||
## Our Responsabilities | ||
|
||
Project maintainers are responsible for clarifying the standards | ||
of acceptable behavior and are expected to take appropriate and | ||
fair corrective action in response to any instances of unacceptable behavior. | ||
|
||
Project maintainers have the right and responsibility to remove, edit, | ||
or reject comments, commits, code, wiki edits, issues, and other contributions | ||
that are not aligned to this Code of Conduct, or to ban temporarily or | ||
permanently any contributor for other behaviors that they deem inappropriate, | ||
threatening, offensive, or harmful. | ||
|
||
## Scope | ||
|
||
This Code of Conduct applies within all project spaces, | ||
and it also applies when an individual is representing the project | ||
or its community in public spaces. | ||
Examples of representing a project or community include using | ||
an official project e-mail address, posting via an official | ||
social media account, or acting as an appointed representative | ||
at an online or offline event. | ||
Representation of a project may be further defined and clarified by | ||
project maintainers. | ||
|
||
This Code of Conduct also applies outside the project spaces when there is | ||
a reasonable belief that an individual's behavior may have a negative impact | ||
on the project or its community. | ||
|
||
## Enforcement | ||
|
||
Instances of abusive, harassing, or otherwise unacceptable behavior | ||
may be reported by contacting the project team at #TODO. | ||
All complaints will be reviewed and investigated and will result in a response | ||
that is deemed necessary and appropriate to the circumstances. | ||
The project team is obligated to maintain confidentiality with regard | ||
to the reporter of an incident. | ||
Further details of specific enforcement policies may be posted separately. | ||
|
||
Project maintainers who do not follow or enforce the Code of Conduct | ||
in good faith may face temporary or permanent repercussions as determined | ||
by other members of the project’s leadership. | ||
|
||
## Attribution | ||
|
||
This Code of Conduct is adapted from the Contributor Covenant, version 1.4, | ||
available at | ||
https://www.contributor-covenant.org/version/1/4/code-of-conduct.html | ||
|
||
For answers to common questions about this code of conduct, | ||
see https://www.contributor-covenant.org/faq |
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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Contributing | ||
|
||
Thank you for you interest in contributing to MAKit! From commenting to | ||
reviewing and sending MR requests, all contributions are welcome. | ||
|
||
## Developer environment | ||
|
||
Install XCode with command line tools. | ||
|
||
## Coding style | ||
|
||
Go to XCode preferences -> Text editing tab -> Page guide at column: 80 | ||
|
||
## Testing | ||
|
||
### CI | ||
|
||
The unit tests are run after each push on the repository. | ||
|
||
The integration tests are not run systematically, neither are the examples. | ||
|
||
Once the MR is "ready to review", please trigger the workflows on GitHub | ||
to ensure these additional tests have completed. | ||
|
||
### Local | ||
|
||
Testing the unit tests on XCode is straight forward. | ||
Testing the integration tests and the examples require an additional setup. | ||
More information in the README. | ||
|
||
## Release |
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.