Skip to content

Commit

Permalink
add test and submission actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Vittorio Caggiano committed Apr 16, 2023
1 parent 1e4d2c8 commit a21b267
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 3 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/docker-comp-test.yml
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



5 changes: 2 additions & 3 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@ name: Docker Image CI

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
branches: [ "submission" ]


jobs:

Expand Down

0 comments on commit a21b267

Please sign in to comment.