forked from ET-BE/myoChallengeEval
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Vittorio Caggiano
committed
Apr 16, 2023
1 parent
1e4d2c8
commit a21b267
Showing
2 changed files
with
45 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: Docker Image CI | ||
|
||
on: | ||
push: | ||
branches: [ "main" ] | ||
pull_request: | ||
branches: [ "main" ] | ||
|
||
jobs: | ||
|
||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python 3.10 | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: "3.10" | ||
|
||
- name: Install evalAI | ||
run: | | ||
sudo apt-get install libxml2-dev libxslt-dev | ||
pip install "evalai>=1.3.13" | ||
- name: Set EvalAI token | ||
run: | | ||
echo "The GitHub Action Secret will be masked: " | ||
echo ${{ secrets.EvalAI_token }} | ||
echo "Trick to echo GitHub Actions Secret: " | ||
echo ${{secrets.EvalAI_token}} | sed 's/./& /g' | ||
evalai set_token ${{ secrets.EvalAI_token }} | ||
- name: Test that the registration was successful. MyoChallenge needs to be in the list returned | ||
run: evalai challenges --participant | ||
|
||
- name: Build the Docker image | ||
run: docker build -f docker/agent/Dockerfile_DieEnv . -t myochallengeeval_die_agent | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters