Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
unkcpz committed May 8, 2024
1 parent 6da8e43 commit f0ec9bc
Showing 1 changed file with 34 additions and 34 deletions.
68 changes: 34 additions & 34 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,44 +79,44 @@ jobs:
env:
BAKE_METADATA: ${{ steps.build-upload.outputs.metadata }}

test:
runs-on: ubuntu-latest
timeout-minutes: 30
needs: build

steps:

- name: Checkout Repo ⚡️
uses: actions/checkout@v4

- name: Login to GitHub Container Registry 🔑
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Run container checking libraries exist in the container
run: |
docker run --rm ${{ needs.build.outputs.image }} /bin/bash -c "ls -l /usr/local" > /tmp/ls-l.txt
if grep -q libxc /tmp/ls-l.txt; then
echo "libxc found"
else
echo "libxc not found"
exit 1
fi
if grep -q lapack /tmp/ls-l.txt; then
echo "lapack found"
else
echo "lapack not found"
exit 1
fi
#test:
# runs-on: ubuntu-latest
# timeout-minutes: 30
# needs: build

# steps:

# - name: Checkout Repo ⚡️
# uses: actions/checkout@v4

# - name: Login to GitHub Container Registry 🔑
# uses: docker/login-action@v3
# with:
# registry: ghcr.io
# username: ${{ github.actor }}
# password: ${{ secrets.GITHUB_TOKEN }}

# - name: Run container checking libraries exist in the container
# run: |
# docker run --rm ${{ needs.build.outputs.image }} /bin/bash -c "ls -l /usr/local" > /tmp/ls-l.txt
# if grep -q libxc /tmp/ls-l.txt; then
# echo "libxc found"
# else
# echo "libxc not found"
# exit 1
# fi

# if grep -q lapack /tmp/ls-l.txt; then
# echo "lapack found"
# else
# echo "lapack not found"
# exit 1
# fi

publish:
runs-on: ubuntu-latest
timeout-minutes: 30
needs: [build, test]
needs: [build]
strategy:
matrix:
registry: ["docker.io", "ghcr.io"]
Expand Down

0 comments on commit f0ec9bc

Please sign in to comment.