Hammer/generic alerts #1580
Workflow file for this run
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: api-server | |
on: | |
pull_request: | |
paths: | |
- '.github/workflows/api-server.yml' | |
- 'packages/api-server/**' | |
push: | |
branches: | |
- main | |
env: | |
CI: true | |
PIPENV_VERBOSITY: -1 | |
jobs: | |
tests: | |
name: Tests | |
runs-on: ubuntu-22.04 | |
container: | |
image: ghcr.io/${{ github.repository }}/e2e | |
credentials: | |
username: ${{ github.repository_owner }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
defaults: | |
run: | |
shell: bash | |
working-directory: packages/api-server | |
steps: | |
- uses: actions/checkout@v2 | |
- name: setup python | |
run: apt update && apt install -y python3-venv python-is-python3 | |
- name: bootstrap | |
uses: ./.github/actions/bootstrap | |
with: | |
package: api-server | |
# This is only a temporary measure for deployment CI while we migrate to Jazzy and Noble on main | |
- name: Setup minimal RMF on Humble | |
run: | | |
mkdir -p minimal_rmf && cd minimal_rmf \ | |
&& curl -sL https://github.com/open-rmf/rmf_internal_msgs/archive/refs/heads/main.tar.gz -o rmf_internal_msgs.tar.gz \ | |
&& curl -sL https://github.com/open-rmf/rmf_building_map_msgs/archive/refs/heads/main.tar.gz -o rmf_building_map_msgs.tar.gz \ | |
&& mkdir -p src/rmf/rmf_internal_msgs && tar zxf rmf_internal_msgs.tar.gz -C src/rmf/rmf_internal_msgs --strip-components=1 && rm rmf_internal_msgs.tar.gz \ | |
&& mkdir -p src/rmf/rmf_building_map_msgs && tar zxf rmf_building_map_msgs.tar.gz -C src/rmf/rmf_building_map_msgs --strip-components=1 && rm rmf_building_map_msgs.tar.gz | |
. /rmf_demos_ws/install/setup.bash | |
colcon build --cmake-args -DCMAKE_BUILD_TYPE=Release | |
shell: bash | |
- name: tests | |
run: | | |
. minimal_rmf/install/setup.bash | |
pnpm run lint | |
pnpm run test:cov | |
pipenv run python -m coverage xml | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v1 | |
with: | |
flags: api-server | |