Skip to content

Commit

Permalink
feature(hus): add self-hosted linux(ubuntu) ci runner (#259)
Browse files Browse the repository at this point in the history
* feature(hus): add self-hosted runner

* revert commit c004eac

c004eac
  • Loading branch information
TuTuHuss authored Aug 2, 2024
1 parent 4c68ac8 commit 5de52bc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
fail-fast: false
matrix:
os:
- 'self-hosted-ubuntu'
- 'self-hosted'
- 'macos-12'
python-version:
- '3.8'
Expand All @@ -30,6 +30,8 @@ jobs:
if: ${{ runner.os == 'Linux' }}
shell: bash
run: |
sudo apt-get update -y
sudo apt-get install swig -y
echo "OS_NAME=Linux" >> $GITHUB_ENV
echo "IS_WIN=" >> $GITHUB_ENV
echo "IS_MAC=" >> $GITHUB_ENV
Expand Down Expand Up @@ -64,13 +66,13 @@ jobs:
shell: bash
run: |
python -m pip install --upgrade pip
pip install --upgrade flake8 setuptools wheel twine
pip install -r requirements.txt
pip install -r requirements-build.txt
pip install -r requirements-test.txt
pip install --no-cache-dir --upgrade flake8 setuptools wheel twine -i https://pypi.tuna.tsinghua.edu.cn/simple
pip install -r requirements.txt --upgrade --no-cache-dir -i https://pypi.tuna.tsinghua.edu.cn/simple
pip install -r requirements-build.txt --upgrade --no-cache-dir -i https://pypi.tuna.tsinghua.edu.cn/simple
pip install -r requirements-test.txt --upgrade --no-cache-dir -i https://pypi.tuna.tsinghua.edu.cn/simple
pip uninstall DI-engine -y
pip install git+http://github.com/opendilab/DI-engine.git@main#egg=DI-engine[common_env]
pip install transformers
pip install --no-cache-dir -i https://pypi.tuna.tsinghua.edu.cn/simple git+http://github.com/opendilab/DI-engine.git@main#egg=DI-engine[common_env] --upgrade
pip install --no-cache-dir transformers --upgrade -i https://pypi.tuna.tsinghua.edu.cn/simple
- name: Run unittest on MacOS or Linux
if: ${{ env.OS_NAME == 'MacOS' || env.OS_NAME == 'Linux'}}
env:
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ moviepy
numpy>=1.22.4
pympler
minigrid
bsuite
moviepy
pycolab
pytest
Expand Down

0 comments on commit 5de52bc

Please sign in to comment.