From 4cda605f44bc3edb8ce08384c6196c4be5db4c57 Mon Sep 17 00:00:00 2001 From: Hien To Date: Wed, 17 Jul 2024 10:40:37 +0700 Subject: [PATCH] CICD for research-utils --- .github/runners/Dockerfile | 3 --- .github/workflows/test-flow.yml | 9 +++++++-- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/runners/Dockerfile b/.github/runners/Dockerfile index 68e6bd7..4674aa3 100644 --- a/.github/runners/Dockerfile +++ b/.github/runners/Dockerfile @@ -41,9 +41,6 @@ ADD ./start.sh /home/runner/start.sh RUN chmod +x /home/runner/start.sh -# Add /usr/local/cuda-11.7/compat to LD_LIBRARY_PATH -ENV LD_LIBRARY_PATH=/usr/local/cuda-12.1/compat${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} - ENTRYPOINT ["/bin/bash", "/home/runner/start.sh"] USER runner \ No newline at end of file diff --git a/.github/workflows/test-flow.yml b/.github/workflows/test-flow.yml index 838f5ad..f21531d 100644 --- a/.github/workflows/test-flow.yml +++ b/.github/workflows/test-flow.yml @@ -5,10 +5,11 @@ on: branches: main pull_request: branches: main + workflow_dispatch: jobs: test: - runs-on: research + runs-on: research-utils steps: - uses: actions/checkout@v4 @@ -24,4 +25,8 @@ jobs: pip install -e . - name: Run test_flow.py - run: python test_flows.py \ No newline at end of file + run: python test_flows.py + env: + S3_ACCESS_KEY: ${{ secrets.MINIO_ACCESS_KEY_ID }} + S3_SECRET_KEY: ${{ secrets.MINIO_SECRET_ACCESS_KEY }} + S3_ENDPOINT_URL: ${{ secrets.MINIO_ENDPOINT }} \ No newline at end of file