Added Civet tests to test_linux

This commit is contained in:
Caleb Herpin 2021-07-27 14:21:13 -05:00
parent 4a0d7dd419
commit 9e66c48bd8
2 changed files with 19 additions and 25 deletions

View File

@ -13,6 +13,15 @@ defaults:
shell: bash shell: bash
jobs: jobs:
# all:
# matrix:
# cfg:
# - { os: ubuntu, tag: 20.04, arch: debian}
# - { os: centos, tag: latest, arch: rhel}
# include:
# - cfg: {}
# - cfg: { os: ubuntu }
# deps
trickops-tests-ubuntu: trickops-tests-ubuntu:
name: Unit Tests Ubuntu:20.04 name: Unit Tests Ubuntu:20.04
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
@ -20,29 +29,17 @@ jobs:
steps: steps:
- uses: actions/checkout@master - uses: actions/checkout@master
- name: install dependencies - name: install dependencies
# Note that perl is for trick-gte which TrickOps runs and qt and everything after it is for koviz
run: | run: |
export DEBIAN_FRONTEND=noninteractive && apt-get update && apt-get install -y git python3 python3-venv perl perl-modules-5.30 qtbase5-dev wget unzip g++ make flex bison export DEBIAN_FRONTEND=noninteractive && apt-get update && apt-get install -y git python3 python3-venv perl perl-modules-5.30 qtbase5-dev wget unzip g++ make flex bison
- name: create virtual environment - name: create virtual environment
run: | run: |
cd share/trick/pymods/trick/ cd share/trick/pymods/trick/
python3 -m venv .venv && source .venv/bin/activate && pip3 install -r requirements.txt python3 -m venv .venv && source .venv/bin/activate && pip3 install -r requirements.txt
# - name: get and build koviz
# run: |
# cd /tmp/ && wget -q https://github.com/nasa/koviz/archive/refs/heads/master.zip && unzip master.zip
# cd /tmp/koviz-master/ && qmake && make
- name: run Python tests - name: run Python tests
run: | run: |
cd share/trick/pymods/trick/ cd share/trick/pymods/trick/
source .venv/bin/activate source .venv/bin/activate
./run_tests.py ./run_tests.py
# - uses: actions/upload-artifact@master
# if: ${{ always() }}
# with:
# name: doctests
# path: |
# share/trick/trickops/tests/*_doctest_log.txt
# /tmp/log.*
trickops-tests-centos8: trickops-tests-centos8:
name: Unit Tests CentOS:latest name: Unit Tests CentOS:latest
@ -57,22 +54,11 @@ jobs:
run: | run: |
cd share/trick/pymods/trick/ cd share/trick/pymods/trick/
python3 -m venv .venv && source .venv/bin/activate && pip3 install -r requirements.txt python3 -m venv .venv && source .venv/bin/activate && pip3 install -r requirements.txt
# - name: get and build koviz
# run: |
# cd /tmp/ && wget -q https://github.com/nasa/koviz/archive/refs/heads/master.zip && unzip master.zip
# cd /tmp/koviz-master/ && qmake-qt5 && make
- name: run Python tests - name: run Python tests
run: | run: |
cd share/trick/pymods/trick/tests/ cd share/trick/pymods/trick/
source .venv/bin/activate source .venv/bin/activate
./run_tests.py ./run_tests.py
# - uses: actions/upload-artifact@master
# if: ${{ always() }}
# with:
# name: doctests
# path: |
# share/trick/trickops/tests/*_doctest_log.txt
# /tmp/log.*
# TODO: ExampleWorkflow.py is not included here because it needs a built Trick # TODO: ExampleWorkflow.py is not included here because it needs a built Trick
# to function correctly and I don't want to duplicate the Trick build testing # to function correctly and I don't want to duplicate the Trick build testing

View File

@ -13,7 +13,6 @@ jobs:
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
python-version: [3.9]
cfg: cfg:
#-------- Operating Systems ---------------- #-------- Operating Systems ----------------
- { os: ubuntu, tag: 18.04, arch: debian } # EOL April 2023 - { os: ubuntu, tag: 18.04, arch: debian } # EOL April 2023
@ -60,6 +59,8 @@ jobs:
libclang-dev libclang-dev
libudunits2-dev libudunits2-dev
libgtest-dev libgtest-dev
python3
python3-venv
install_gtest: cd /usr/src/gtest && cmake . && make && cp libgtest* /usr/lib/ install_gtest: cd /usr/src/gtest && cmake . && make && cp libgtest* /usr/lib/
#-------- RHEL Dependencies ---------------- #-------- RHEL Dependencies ----------------
- cfg: { arch: rhel } - cfg: { arch: rhel }
@ -81,6 +82,7 @@ jobs:
which which
zlib-devel zlib-devel
gtest-devel gtest-devel
python3-devel
#-------- Ubuntu Only Dependencies ---------------- #-------- Ubuntu Only Dependencies ----------------
- cfg: { os: ubuntu } - cfg: { os: ubuntu }
os_deps: >- os_deps: >-
@ -146,5 +148,11 @@ jobs:
export MAKEFLAGS=-j`nproc` export MAKEFLAGS=-j`nproc`
./configure ./configure
make make
- name: Test CivetServer
run: |
cd share/trick/pymods/trick/
python3 -m venv .venv && source .venv/bin/activate && pip3 install -r requirements.txt
source .venv/bin/activate
./run_tests.py
- name: Test - name: Test
run: make test run: make test