-
-
Notifications
You must be signed in to change notification settings - Fork 409
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into gamma_ray_propagation
- Loading branch information
Showing
184 changed files
with
8,837 additions
and
1,708 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 |
---|---|---|
|
@@ -17,55 +17,53 @@ pr: | |
|
||
variables: | ||
system.debug: false | ||
commit.sha: '$(Build.SourceVersion)' | ||
pr.number: '$(System.PullRequest.PullRequestNumber)' | ||
build.id: '$(Build.BuildId)' | ||
job.id: '$(System.JobId)' | ||
log.url: 'https://dev.azure.com/tardis-sn/TARDIS/_build/results?buildId=$(build.id)&view=logs&jobId=$(job.id)' | ||
|
||
pool: | ||
vmImage: 'ubuntu-latest' | ||
|
||
jobs: | ||
- job: 'push' | ||
- job: 'pull_request' | ||
steps: | ||
- template: templates/default.yml | ||
parameters: | ||
fetchRefdata: true | ||
refdataRepo: 'github' | ||
useMamba: true | ||
|
||
- bash: | | ||
cd $(refdata.dir) | ||
git remote add fork https://$(bot_token)@github.com/tardis-bot/tardis-refdata | ||
git checkout -B pr-$(pr.number) | ||
displayName: 'Set up new branch' | ||
- bash: | | ||
cd $(tardis.dir) | ||
source activate tardis | ||
pytest tardis --tardis-refdata=$(refdata.dir) --generate-reference | ||
displayName: 'Generate reference data' | ||
displayName: 'Generate reference data on a new branch' | ||
- bash: | | ||
cd $(refdata.dir) | ||
git add unit_test_data.h5 montecarlo_1e5_compare_data.h5 | ||
git add -A | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "tardis-bot" | ||
git commit -m "update reference data (pr $(pr.number))" | ||
git remote set-url origin https://$(bot_token)@github.com/tardis-sn/tardis-refdata | ||
git push origin master | ||
displayName: 'Push new reference data' | ||
git commit -m "Automated Update (PR $(pr.number))" | ||
git push fork pr-$(pr.number) -f | ||
displayName: 'Commit new reference data' | ||
- bash: | | ||
cd $(refdata.dir) | ||
# Check if pull request already exists | ||
STATE=$(gh pr list --repo tardis-sn/tardis-refdata -H pr-$(pr.number) --json state | jq -r .[].state) | ||
if [[ ! -z "$STATE" ]]; then | ||
echo "$(bot_token)" | gh auth login --with-token | ||
gh pr create --repo tardis-sn/tardis-refdata --head tardis-bot:pr-$(pr.number) --title "Automated Update (PR $(pr.number))" --body "_Pull request automatically generated by [#$(pr.number)](https://github.com/tardis-sn/tardis/pull/$(pr.number))_" | ||
# Run only if the pipeline is triggered by a pull request. | ||
- ${{ if eq(variables['Build.Reason'], 'PullRequest') }}: | ||
- task: GitHubComment@0 | ||
inputs: | ||
gitHubConnection: 'tardis-sn' | ||
repositoryName: 'tardis-sn/tardis' | ||
id: $(pr.number) | ||
comment: '**Update succeeded** $(commit.sha) <br><br> Changes pushed to [tardis-sn/tardis-refdata](/tardis-sn/tardis-refdata).' | ||
displayName: 'Post results (success)' | ||
else | ||
exit 0 | ||
- task: GitHubComment@0 | ||
inputs: | ||
gitHubConnection: 'tardis-sn' | ||
repositoryName: 'tardis-sn/tardis' | ||
id: $(pr.number) | ||
comment: '**Update failed** $(commit.sha) <br><br> For more information, check the [job log]($(log.url)).' | ||
displayName: 'Post results (failed)' | ||
condition: failed() | ||
fi | ||
displayName: 'Propose changes via pull request' |
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 |
---|---|---|
@@ -1,5 +1,9 @@ | ||
Adam Suban-Loewen <[email protected]> | ||
|
||
Alexander Holas <[email protected]> | ||
Alexander Holas <[email protected]> AlexHls <[email protected]> | ||
Alexander Holas <[email protected]> AlexHls <[email protected]> | ||
|
||
Alice Harpole <[email protected]> | ||
Alice Harpole <[email protected]> Alice Harpole <[email protected]> | ||
|
||
|
@@ -106,6 +110,8 @@ Maryam Patel <[email protected]> maryam <[email protected]> | |
Maryam Patel <[email protected]> maryam patel <[email protected]> | ||
Maryam Patel <[email protected]> maryampatel <[email protected]> | ||
|
||
Matthew Bartnik <[email protected]> | ||
|
||
Michael Klauser <[email protected]> | ||
Michael Klauser <[email protected]> Michael.Klauser <[email protected]> | ||
Michael Klauser <[email protected]> Michael <[email protected]> | ||
|
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 |
---|---|---|
|
@@ -15,4 +15,4 @@ As members of the community, | |
|
||
This code of conduct has been adapted from the Astropy Code of Conduct, which in turn uses parts of the PSF code of conduct. | ||
|
||
**To report any violations of the code of conduct, please contact a member of the [TARDIS core team](https://tardis-sn.github.io/tardis/team_and_governance/team.html) (the email [email protected] is monitored by the core team) or the Ombudsperson (see the [team page](https://tardis-sn.github.io/tardis/team_and_governance/team.html); who is outside of the TARDIS collaboration and will treat reports confidentially).** | ||
**To report any violations of the code of conduct, please contact a member of the [TARDIS core team](https://tardis-sn.github.io/team/community_roles/index.html) (the email [email protected] is monitored by the core team) or the Ombudsperson (see the [team page](https://tardis-sn.github.io/team/community_roles/index.html); who is outside of the TARDIS collaboration and will treat reports confidentially).** |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 @@ | ||
../../CHANGELOG.md |
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 @@ | ||
../../CONTRIBUTING.md |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
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
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 @@ | ||
../../../tardis_example.yml |
File renamed without changes
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
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
File renamed without changes.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Oops, something went wrong.