-
Notifications
You must be signed in to change notification settings - Fork 0
102 lines (98 loc) · 3.35 KB
/
CI.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
name: CI
on:
pull_request:
push:
branches:
- develop
- release**
workflow_dispatch:
jobs:
test:
name: Julia ${{ matrix.julia-version }} - ${{ matrix.os }} - ${{ matrix.arch }}
runs-on: ${{ matrix.os }}
env:
JULIA_PKG_SERVER: ""
strategy:
fail-fast: false
matrix:
julia-version: ['1.9', '~1.10.0-0', 'nightly']
os: [ubuntu-latest]
arch: [x64]
steps:
- uses: actions/checkout@v4
# with:
# lfs: true
- uses: actions/setup-python@v4
with:
python-version: '3.9'
cache: 'pip'
- name: Installing pip packages
run: |
pip install pip --upgrade
pip install numpy
pip install opencv-python
- uses: julia-actions/setup-julia@v1
with:
version: ${{ matrix.julia-version }}
arch: ${{ matrix.arch }}
- uses: ros-tooling/[email protected]
# with:
# required-ros-distributions: noetic humble
# - name: Check Rosversion
# run: |
# ls /opt/ros
# no such file or dir
# source /opt/ros/noetic/setup.bash && rosnode --help
# rosversion -d
- name: Git global config
run: |
git config --global user.name Tester
git config --global user.email [email protected]
- name: "Julia Pkg build as necessary"
uses: julia-actions/julia-buildpkg@latest
- name: "Run Julia tests"
uses: julia-actions/julia-runtest@latest
continue-on-error: ${{ matrix.julia-version == 'nightly' }}
- uses: julia-actions/julia-processcoverage@v1
if: ${{ matrix.julia-version == '1.9' }}
- uses: codecov/codecov-action@v1
with:
file: lcov.info
# ==============================================
# tried by could not get to work
# matrix
# # https://github.com/ros-tooling/action-ros-ci/blob/master/.github/workflows/test.yml
# ros_distribution:
# - noetic
# include:
# # Noetic Ninjemys (May 2020 - May 2025)
# - docker_image: rostooling/setup-ros-docker:ubuntu-focal-ros-noetic-ros-base-latest
# ros_distribution: noetic
# container:
# image: ${{ matrix.docker_image }}
# source /opt/ros/noetic/setup.bash
# sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'
# sudo apt install curl # if you haven't already installed curl
# curl -s https://raw.githubusercontent.com/ros/rosdistro/master/ros.asc | sudo apt-key add -
# sudo apt update
# sudo apt install ros-noetic-ros-base
# docker pull osrf/ros:noetic-desktop
# - uses: ./
# id: action-ros-ci
# with:
# target-ros1-distro: ${{ matrix.ros_distribution }}
# - uses: ika-rwth-aachen/[email protected]
# with:
# base-image: rwthika/ros1:noetic
# command: rosversion -d
# - uses: actions/cache@v1
# env:
# cache-name: cache-artifacts
# with:
# path: ~/.julia/artifacts
# key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
# restore-keys: |
# ${{ runner.os }}-test-${{ env.cache-name }}-
# ${{ runner.os }}-test-
# ${{ runner.os }}-
# ----------------