Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
62 changes: 62 additions & 0 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
name: test

on:
workflow_dispatch:
pull_request:
push:
branches:
- main
schedule:
- cron: '0 0 * * *'

jobs:
ubuntu-build-test:
runs-on: ubuntu-20.04

steps:
- uses: actions/checkout@v2
with:
path: src/fastdds_python

- name: Install apt dependencies
run: |
sudo apt update
sudo apt install -y \
python3 \
python3-pip \
libasio-dev \
libtinyxml2-dev \
swig \
libpython3-dev

- name: Install python dependencies
run: |
sudo pip3 install -U \
vcstool \
colcon-common-extensions

- name: Fetch repositories
run: |
vcs import --skip-existing src < src/fastdds_python/fastdds_python.repos
cd src/fastdds
git checkout feature/good-datawriter-api
cd ../../
Comment on lines +41 to +43
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should create a follow-up PR removing these lines, to be merged after eProsima/Fast-DDS#2560


- name: Build workspace
run: colcon build --event-handlers=console_direct+

- name: Run tests
run: |
source install/setup.bash && \
colcon test \
--packages-select fastdds_python \
--event-handlers=console_direct+ \
--return-code-on-test-failure \
--ctest-args --timeout 60

- name: Upload Logs
uses: actions/upload-artifact@v1
with:
name: colcon-logs-ubuntu
path: log/
if: always()