rename project #135
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
name: environment | |
on: | |
push: | |
branches: ["main"] | |
pull_request: | |
branches: ["main"] | |
jobs: | |
Checkout: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Checkout submodules | |
run: git submodule update --init --recursive | |
- name: Upload coverage reports to Codecov | |
uses: codecov/codecov-action@v3 | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
Build: | |
needs: [Checkout] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Build the docker image | |
run: docker pull ninim/reinforcement-docker:latest | |
- name: Login to Docker Hub | |
run: echo ${{ secrets.DOCKER_PASSWORD }} | docker login -u ${{ secrets.DOCKER_USERNAME }} --password-stdin | |
#ROS: | |
# needs: [Build] | |
# runs-on: ubuntu-latest | |
# env: | |
# working-directory: ./ | |
# steps: | |
# - name: Running the tests | |
# run: docker run ninim/reinforcement-docker:latest bash -c "cd /ws && source devel/setup.bash && roslaunch reinforcement bringup.launch & sleep 20 && cd /ws && source devel/setup.bash && rosrun reinforcement ros.py" | |
# working-directory: ${{env.working-directory}} | |
#Simulation: | |
# needs: [Build] | |
# runs-on: ubuntu-latest | |
# env: | |
# working-directory: ./ | |
# steps: | |
# - name: Running the tests | |
# run: docker run ninim/reinforcement-docker:latest bash -c "cd /ws && source devel/setup.bash && roslaunch reinforcement bringup.launch & sleep 20 && cd /ws && source devel/setup.bash && rosrun reinforcement sim.py" | |
# working-directory: ${{env.working-directory}} | |
#Library: | |
# needs: [Build] | |
# runs-on: ubuntu-latest | |
# env: | |
# working-directory: ./ | |
# steps: | |
# - name: Running the tests | |
# run: docker run ninim/reinforcement-docker:latest bash -c "cd /ws && source devel/setup.bash && rosrun reinforcement library.py" | |
# working-directory: ${{env.working-directory}} | |
Package: | |
needs: [Build] | |
runs-on: ubuntu-latest | |
env: | |
working-directory: ./ | |
steps: | |
- name: Running the tests | |
run: docker run ninim/reinforcement-docker:latest bash -c "cd /ws && source devel/setup.bash && rosrun reinforcement package.py" | |
working-directory: ${{env.working-directory}} |