Skip to content

Commit

Permalink
Test: use public image for testing unidock_tools (#83)
Browse files Browse the repository at this point in the history
* Test: use public image for testing unidock_tools

* Remove python version requirements in CI

* Remove unused step

* Pin python version to 3.11

---------

Co-authored-by: YANG SHAOYI <[email protected]>
  • Loading branch information
caic99 and ysyecust authored Mar 2, 2024
1 parent 4193693 commit 8918d21
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 21 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ jobs:
repository: dptech-corp/Uni-Dock-Benchmarks
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: 3.11
- name: Install requirements
run: |
apt update && apt install -y wget unzip
Expand Down
16 changes: 5 additions & 11 deletions .github/workflows/ci_test_tools.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,9 @@ on:
branches:
- '**ci**'
pull_request:
branches:
branches:
- main

env:
PYTHON_VERSION: "3.11"

jobs:
flake8:
continue-on-error: true
Expand All @@ -20,7 +17,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ env.PYTHON_VERSION }}
python-version: 3.11

- name: Install dependencies
run: |
Expand All @@ -40,7 +37,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ env.PYTHON_VERSION }}
python-version: 3.11

- name: Install dependencies
run: |
Expand All @@ -57,11 +54,8 @@ jobs:
if: ${{ always() }}
needs: [flake8,pyright]
runs-on: nvidia
strategy:
matrix:
cuda-version: ["12.0.0"]
container:
image: docker.io/xmyyn/unidock_tools_base:0.0.1_cuda${{ matrix.cuda-version }}
image: dptechnology/unidock_tools
options: --gpus all
steps:
- name: checkout repo
Expand Down Expand Up @@ -93,7 +87,7 @@ jobs:
run: |
pip install pytest pytest-cov
pytest unidock_tools/tests/ut -vv --cov --cov-report term
- name: run application e2e test
run: |
pytest unidock_tools/tests/applications -vv --cov --cov-report term
13 changes: 3 additions & 10 deletions .github/workflows/ci_test_unidock.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
branches:
- '**ci**'
pull_request:
branches:
branches:
- main

jobs:
Expand All @@ -22,13 +22,6 @@ jobs:
apt-get update
apt-get install -y build-essential cmake libboost-all-dev ninja-build git
- if: ${{ env.ACT }}
name: Hack container for local development
run: |
apt-get install -y curl sudo
curl -fsSL https://deb.nodesource.com/setup_18.x | bash -
sudo apt-get install -y nodejs
- name: build
run: |
cd unidock
Expand All @@ -44,10 +37,10 @@ jobs:
nvidia-smi
unidock --version
- name: Set up Python 3.10
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
python-version: '3.11'

- name: perform unit-test
run: |
Expand Down

0 comments on commit 8918d21

Please sign in to comment.