-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #616 from mala-project/develop
v1.3.0 - Into the multi-GPU-niverse
- Loading branch information
Showing
133 changed files
with
14,439 additions
and
6,918 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,37 @@ | ||
name: Cleanup caches | ||
on: | ||
pull_request_target: | ||
types: | ||
- closed | ||
push: | ||
# Trigger on pushes to master or develop and for git tag pushes | ||
branches: | ||
- master | ||
- develop | ||
tags: | ||
- v* | ||
|
||
jobs: | ||
cleanup: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Cleanup caches | ||
run: | | ||
gh extension install actions/gh-actions-cache | ||
echo "Fetching list of cache key" | ||
cacheKeysForPR=$(gh actions-cache list -R $REPO -B $BRANCH -L 100 | cut -f 1 ) | ||
## Setting this to not fail the workflow while deleting cache keys. | ||
set +e | ||
echo "Deleting caches..." | ||
for cacheKey in $cacheKeysForPR | ||
do | ||
echo $cacheKey | ||
gh actions-cache delete $cacheKey -R $REPO -B $BRANCH --confirm | ||
done | ||
echo "Done" | ||
env: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
REPO: ${{ github.repository }} | ||
BRANCH: refs/pull/${{ github.event.pull_request.number }}/merge |
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,15 @@ | ||
name: Delete Untagged Container Versions | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
delete-untagged-containers: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: mala_conda_cpu | ||
uses: actions/delete-package-versions@v5 | ||
with: | ||
package-name: 'mala_conda_cpu' | ||
package-type: 'container' | ||
delete-only-untagged-versions: 'true' |
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,18 +1,19 @@ | ||
name: mirror | ||
name: Mirror to CASUS | ||
|
||
on: [push, delete] | ||
|
||
jobs: | ||
mirror-to-CASUS: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- name: mirror-repository | ||
uses: spyoungtech/mirror-action@v0.6.0 | ||
with: | ||
REMOTE: 'ssh://git@github.com/casus/mala.git' | ||
GIT_SSH_PRIVATE_KEY: ${{ secrets.GIT_SSH_KEY }} | ||
GIT_SSH_NO_VERIFY_HOST: "true" | ||
DEBUG: "true" | ||
- name: Check out repository | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: mirror-repository | ||
uses: spyoungtech/mirror-action@v0.6.0 | ||
with: | ||
REMOTE: 'ssh://git@github.com/casus/mala.git' | ||
GIT_SSH_PRIVATE_KEY: ${{ secrets.GIT_SSH_KEY }} | ||
GIT_SSH_NO_VERIFY_HOST: "true" | ||
DEBUG: "true" |
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,8 @@ | ||
# https://black.readthedocs.io/en/stable/integrations/source_version_control.html | ||
|
||
repos: | ||
# Using this mirror lets us use mypyc-compiled black, which is about 2x faster | ||
- repo: https://github.com/psf/black-pre-commit-mirror | ||
rev: 24.4.0 | ||
hooks: | ||
- id: black |
Oops, something went wrong.