Skip to content

Commit

Permalink
fixup gitlab actions?
Browse files Browse the repository at this point in the history
  • Loading branch information
shapiromatron committed Feb 12, 2024
1 parent 1ad2696 commit 76e46c4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ jobs:
steps:
- name: Checkout bmds-server
uses: actions/checkout@v3
- name: Checkout bmds@next
- name: Checkout bmds@main
uses: actions/checkout@v3
with:
repository: USEPA/bmds-private
path: venv
ref: next
ref: main
token: ${{ secrets.USEPA_BMDS_PRIVATE_PAT }}
- uses: actions/setup-python@v4
with:
Expand Down Expand Up @@ -55,8 +55,7 @@ jobs:
export "LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib:/usr/lib"
sudo cp vendor/libnlopt.so /usr/local/lib/libnlopt.so.0
sudo ln -s /lib/x86_64-linux-gnu/libgsl.so /usr/local/lib/libgsl.so.25
export "BMD_DLL=$GITHUB_WORKSPACE/venv/bmds/bin/BMDS330/libDRBMD.so"
echo $BMD_DLL
export "BMD_DLL=$GITHUB_WORKSPACE/venv/bmds/bmdscore.cpython-*-x86_64-linux-gnu.so"
ldd $BMD_DLL
- name: lint
run: |
Expand Down Expand Up @@ -141,12 +140,12 @@ jobs:

steps:
- uses: actions/checkout@v3
- name: Checkout bmds@next
- name: Checkout bmds@main
uses: actions/checkout@v3
with:
repository: USEPA/bmds-private
path: venv
ref: next
ref: main
token: ${{ secrets.USEPA_BMDS_PRIVATE_PAT }}
- uses: actions/setup-python@v4
with:
Expand Down Expand Up @@ -176,8 +175,7 @@ jobs:
export "LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib:/usr/lib"
sudo cp vendor/libnlopt.so /usr/local/lib/libnlopt.so.0
sudo ln -s /lib/x86_64-linux-gnu/libgsl.so /usr/local/lib/libgsl.so.25
export "BMD_DLL=$GITHUB_WORKSPACE/venv/bmds/bin/BMDS330/libDRBMD.so"
echo $BMD_DLL
export "BMD_DLL=$GITHUB_WORKSPACE/venv/bmds/bmdscore.cpython-*-x86_64-linux-gnu.so"
ldd $BMD_DLL
# https://github.community/t/how-to-retry-a-failed-step-in-github-actions-workflow/125880
- name: run integration tests
Expand Down
2 changes: 1 addition & 1 deletion compose/app/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,5 @@ USER app

ENV LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH

RUN ldd /usr/local/lib/python3.11/site-packages/bmds/bmdscore.cpython-311-x86_64-linux-gnu.so && \
RUN ldd /usr/local/lib/python3.11/site-packages/bmds/bmdscore.cpython-*-x86_64-linux-gnu.so && \
python /app/test.py

0 comments on commit 76e46c4

Please sign in to comment.