Skip to content

Commit

Permalink
update ci
Browse files Browse the repository at this point in the history
  • Loading branch information
guyzsarun committed Aug 9, 2023
1 parent c366550 commit 260acc2
Showing 1 changed file with 17 additions and 23 deletions.
40 changes: 17 additions & 23 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,37 +27,31 @@ jobs:
tags: ${{ env.BASE_TAG }}
load: true

test-json:
name: Test LFN Conversion
runs-on: ubuntu-latest
needs: build
steps:
- name: Check out Git repository
uses: actions/checkout@v2

- uses: docker/setup-buildx-action@v1
with:
driver: docker

- name: Build Docker test image
uses: docker/build-push-action@v4
with:
context: .
file: docker/Dockerfile.test
tags: user/xrootd-cmstfc:test
load: true
build-contexts: |
base_img=docker-image://${{ env.BASE_TAG }}
# test-json:
# name: Test LFN Conversion
# runs-on: ubuntu-latest
# needs: build
# steps:
# - name: Check out Git repository
# uses: actions/checkout@v2

# - uses: docker/setup-buildx-action@v1

# - name: Build Docker image
# uses: docker/build-push-action@v4
# with:
# context: .
# file: docker/Dockerfile
# load: true
# tags: ${{ env.TEST_TAG }}
# cache-from: type=gha
# cache-to: type=gha,mode=max

# - name: Unit test
# run: |
# docker run --rm ${{ env.TEST_TAG }} python3 -m pytest -v
- name: Unit test
run: |
docker run --rm user/xrootd-cmstfc:test python3 -m pytest -v
# test-rpm:
# name: Test JSON RPM package
Expand Down

0 comments on commit 260acc2

Please sign in to comment.