-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into 750-save-csv-v2
- Loading branch information
Showing
26 changed files
with
264 additions
and
68 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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
name: Support new PyTorch release | ||
title: 'Support new PyTorch release' | ||
labels: 'enhancement' | ||
assignees: 'ClaudiaComito' | ||
--- | ||
|
||
A new PyTorch release is out. Action needed: | ||
|
||
- run CPU tests | ||
- run GPU tests | ||
- fix bugs | ||
- expand tests | ||
- release as minor version |
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,81 @@ | ||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request_target: | ||
types: [opened, synchronize, reopened] | ||
|
||
name: CodeSee Map | ||
|
||
jobs: | ||
test_map_action: | ||
runs-on: ubuntu-latest | ||
continue-on-error: true | ||
name: Run CodeSee Map Analysis | ||
steps: | ||
- name: checkout | ||
id: checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
repository: ${{ github.event.pull_request.head.repo.full_name }} | ||
ref: ${{ github.event.pull_request.head.ref }} | ||
fetch-depth: 0 | ||
|
||
# codesee-detect-languages has an output with id languages. | ||
- name: Detect Languages | ||
id: detect-languages | ||
uses: Codesee-io/codesee-detect-languages-action@latest | ||
|
||
- name: Configure JDK 16 | ||
uses: actions/setup-java@v2 | ||
if: ${{ fromJSON(steps.detect-languages.outputs.languages).java }} | ||
with: | ||
java-version: '16' | ||
distribution: 'zulu' | ||
|
||
# CodeSee Maps Go support uses a static binary so there's no setup step required. | ||
|
||
- name: Configure Node.js 14 | ||
uses: actions/setup-node@v2 | ||
if: ${{ fromJSON(steps.detect-languages.outputs.languages).javascript }} | ||
with: | ||
node-version: '14' | ||
|
||
- name: Configure Python 3.x | ||
uses: actions/setup-python@v2 | ||
if: ${{ fromJSON(steps.detect-languages.outputs.languages).python }} | ||
with: | ||
python-version: '3.10' | ||
architecture: 'x64' | ||
|
||
- name: Configure Ruby '3.x' | ||
uses: ruby/setup-ruby@v1 | ||
if: ${{ fromJSON(steps.detect-languages.outputs.languages).ruby }} | ||
with: | ||
ruby-version: '3.0' | ||
|
||
# CodeSee Maps Rust support uses a static binary so there's no setup step required. | ||
|
||
- name: Generate Map | ||
id: generate-map | ||
uses: Codesee-io/codesee-map-action@latest | ||
with: | ||
step: map | ||
github_ref: ${{ github.ref }} | ||
languages: ${{ steps.detect-languages.outputs.languages }} | ||
|
||
- name: Upload Map | ||
id: upload-map | ||
uses: Codesee-io/codesee-map-action@latest | ||
with: | ||
step: mapUpload | ||
api_token: ${{ secrets.CODESEE_ARCH_DIAG_API_TOKEN }} | ||
github_ref: ${{ github.ref }} | ||
|
||
- name: Insights | ||
id: insights | ||
uses: Codesee-io/codesee-map-action@latest | ||
with: | ||
step: insights | ||
api_token: ${{ secrets.CODESEE_ARCH_DIAG_API_TOKEN }} | ||
github_ref: ${{ github.ref }} |
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,56 @@ | ||
name: Support latest PyTorch | ||
|
||
on: | ||
push: | ||
paths: | ||
- '.github/workflows/pytorch-release-versions/*' | ||
env: | ||
previous_pytorch: $(grep 'torch>=' setup.py | awk -F '<=' '{print $2}' | tr -d '",') | ||
new_pytorch: $(<.github/workflows/pytorch-release-versions/pytorch-latest.txt) | ||
permissions: | ||
contents: write | ||
issues: write | ||
pull-requests: write | ||
jobs: | ||
latest-torch-support: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: JasonEtco/create-an-issue@v2 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
id: | ||
create-issue | ||
with: | ||
filename: .github/ISSUE_TEMPLATE/support_latest_pytorch.md | ||
milestone: 1 | ||
update_existing: true | ||
search_existing: open | ||
- name: Check out new branch | ||
uses: actions/checkout@v2 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
ref: 'main' | ||
- name: Update setup.py | ||
run: | | ||
echo ${{ env.previous_pytorch }} | ||
echo ${{ env.new_pytorch }} | ||
sed -i '/torch>=/ s/'"${{ env.previous_pytorch }}"'/'"${{ env.new_pytorch }}"'/g' setup.py | ||
sed -i 's/'"${{ env.previous_pytorch }}"'/'"${{ env.new_pytorch }}"'/g' .github/workflows/pytorch-release-versions/pytorch-latest.txt | ||
- name: Define env variable | ||
run: | | ||
echo "new=$(<.github/workflows/pytorch-release-versions/pytorch-latest.txt)" >> $GITHUB_ENV | ||
- name: Create PR from branch | ||
uses: peter-evans/create-pull-request@v3 | ||
with: | ||
base: main | ||
delete-branch: true | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
commit-message: Support latest PyTorch release | ||
title: Support PyTorch ${{ env.new }} | ||
body: | | ||
Run tests on latest PyTorch release | ||
Issue/s resolved: #${{ steps.create-issue.outputs.number }} | ||
Auto-generated by [create-pull-request][1] | ||
[1]: https://github.com/peter-evans/create-pull-request | ||
reviewers: ClaudiaComito, mtar, coquelin77 |
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,27 @@ | ||
name: Get latest PyTorch release version | ||
on: | ||
schedule: | ||
- cron: '0 5 * * 1-5' | ||
jobs: | ||
get-version: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
ref: 'main' | ||
- name: Fetch PyTorch release version | ||
run: | | ||
curl -sL https://api.github.com/repos/pytorch/pytorch/releases/latest | \ | ||
jq -r ".tag_name" | tr -d 'v' > .github/workflows/pytorch-release-versions/pytorch-latest.txt | ||
- name: Check for modified files | ||
id: git-check | ||
run: echo ::set-output name=modified::$([ -z "`git status --porcelain`" ] && echo "false" || echo "true") | ||
- name: Commit latest PyTorch release version | ||
if: steps.git-check.outputs.modified == 'true' | ||
run: | | ||
echo "new=$(<.github/workflows/pytorch-release-versions/pytorch-latest.txt)" >> $GITHUB_ENV | ||
git config --global user.name 'ClaudiaComito' | ||
git config --global user.email 'c.comito@fz-juelich.de@users.noreply.github.com' | ||
git commit -am "New PyTorch release ${{ env.new }}" | ||
git push |
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 @@ | ||
1.11.0 |
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.