Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test conda #726

Closed
wants to merge 24 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
fe64202
Staged images 1 GitHub workflow (#1)
EveningStarlight Dec 30, 2024
ce39f1d
Staged images 2 image folder (#2)
EveningStarlight Dec 30, 2024
4ac230f
Staged images 3 remove old resources (#3)
EveningStarlight Dec 30, 2024
898dad8
feat: now compares with master branch
EveningStarlight Dec 30, 2024
0d6812a
feat: add nightly (#4)
EveningStarlight Dec 31, 2024
4f6d0a2
Update check-diff.yaml (#5)
EveningStarlight Jan 2, 2025
9089baa
always build master (#6)
EveningStarlight Jan 2, 2025
d2ef778
fix: quote head_ref
EveningStarlight Jan 2, 2025
d980d46
echo values
EveningStarlight Jan 2, 2025
642de6b
fix echos
EveningStarlight Jan 2, 2025
d1498fc
fix: use make helper script for branch name (#8)
EveningStarlight Jan 2, 2025
0268572
fix: trivy branch ref
EveningStarlight Jan 2, 2025
703fc25
add mamba to excluded packages
EveningStarlight Jan 3, 2025
1900bcb
Feat: Nightly now only tests (#12)
EveningStarlight Jan 7, 2025
e76e951
fix: splits mamba even more (#13)
EveningStarlight Jan 8, 2025
e2e7c67
fix time of nightly
EveningStarlight Jan 8, 2025
3befcb5
Update docker-nightly.yaml
EveningStarlight Jan 8, 2025
0957bd9
add pytorch requirments file (#14)
EveningStarlight Jan 8, 2025
3813aa3
feat: update documentation
EveningStarlight Jan 8, 2025
f76dcf2
remove: trivy.sh
EveningStarlight Jan 8, 2025
a40930c
Remove scripts (#16)
EveningStarlight Jan 8, 2025
5bd7d3a
test: conda install instead of mamba install
EveningStarlight Jan 9, 2025
d73b563
test: one conda install
EveningStarlight Jan 9, 2025
3872cbe
test all installs using conda
EveningStarlight Jan 10, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
247 changes: 0 additions & 247 deletions .github/workflows/build_push.yaml

This file was deleted.

62 changes: 62 additions & 0 deletions .github/workflows/check-diff.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
name: Check for changes in subdirectory

on:
workflow_call:
inputs:
directory:
description: The directory of the image files
required: true
type: string
parent-image-is-diff:
description: Parent image has been changed?
required: true
type: string
branch-name:
description: The name of the current branch
required: true
type: string
outputs:
is-diff:
description: Is there a difference between the master branch and the current branch
value: ${{ jobs.check-diff.outputs.is-diff }}

jobs:
check-diff:
runs-on: ubuntu-latest
outputs:
is-diff: ${{ steps.check-changes.outputs.is-diff }}

steps:
- uses: actions/checkout@v4

- name: Fetch master branch
run: |
git fetch origin master

- name: Check for changes
id: check-changes
run: | # Check for changes excluding README.md
if [ "${{ inputs.branch-name }}" == "master" ]; then
echo "Always build master"
echo "is-diff=true" >> $GITHUB_OUTPUT
elif [ "${{ inputs.parent-image-is-diff }}" == "true" ]; then
echo "Parent is diff"
echo "is-diff=true" >> $GITHUB_OUTPUT
# Check if the subdirectory exists in the base branch
elif ! git ls-tree -d origin/master -- "images/${{ inputs.directory }}" >/dev/null 2>&1; then
echo "Subdirectory does not exist in the base branch"
echo "is-diff='true'" >> $GITHUB_OUTPUT
else
CHANGES=$(git diff --name-only origin/master HEAD -- "images/${{ inputs.directory }}" | grep -v "README.md" || true)
NEW_FILES=$(git diff --name-only --diff-filter=A origin/master HEAD -- "images/${{ inputs.directory }}" | grep -v "README.md" || true)

CHANGES="${CHANGES}${NEW_FILES}"

if [ -n "$CHANGES" ]; then
echo "Changes detected (excluding README.md)"
echo "is-diff=true" >> $GITHUB_OUTPUT
else
echo "No changes detected"
echo "is-diff=false" >> $GITHUB_OUTPUT
fi
fi
Loading
Loading