Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test actions #2

Merged
merged 30 commits into from
Jul 7, 2023
Merged
Show file tree
Hide file tree
Changes from 23 commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
c477eaf
Initial commit of containerized GitHub actions to run unit tests.
Jun 27, 2023
43a47e4
Fixing typo from previous commit.
mwaxmonsky Jun 27, 2023
5cc29b5
Fixing typo from previous commit.
mwaxmonsky Jun 27, 2023
aaa12aa
Addming missing python dependency.
mwaxmonsky Jun 27, 2023
92680b7
Removing incorrect flag from pip install.
mwaxmonsky Jun 27, 2023
3ff2d09
Replacing incorrect Dockerfile instruction.
mwaxmonsky Jun 27, 2023
7cce8c5
Returning non-zero if test failures detected.
mwaxmonsky Jun 27, 2023
8ac4c7e
Removing test failing due to not being fully implemented yet.
mwaxmonsky Jun 28, 2023
00edf9a
Addming missing newlines.
mwaxmonsky Jun 28, 2023
d3413c1
Adding testing CI action to pull requests and all branches.
mwaxmonsky Jul 3, 2023
f3fa550
Updating workflow name with more accurate description.
mwaxmonsky Jul 3, 2023
7c5c3fb
Renaming capgen unit test workflow file.
mwaxmonsky Jul 3, 2023
97cd70a
Fixing typo.
mwaxmonsky Jul 3, 2023
e5fdab9
Moving capgen Dockerfile into test directory.
mwaxmonsky Jul 3, 2023
d5cc5f5
Adding print statement to test output for reasong for skipping var_ac…
mwaxmonsky Jul 3, 2023
a10648a
Moving tests to running in github container directly.
mwaxmonsky Jul 5, 2023
374a473
Replacing apt calls with apt-get.
mwaxmonsky Jul 5, 2023
7030d43
Adding sudo to apt-get commands.
mwaxmonsky Jul 5, 2023
d0e2e22
Updating package names to ubuntu packages.
mwaxmonsky Jul 5, 2023
5e70051
Updating path to cd into.
mwaxmonsky Jul 5, 2023
e76bb45
Removing test/Dockerfile as no longer needed.
mwaxmonsky Jul 5, 2023
752f1f1
Removing un-needed python dependencies install step.
mwaxmonsky Jul 5, 2023
62a0d03
Removing sourcing python venv.
mwaxmonsky Jul 5, 2023
2552b69
Filtering CI action to only auto run if in a PR or pushing to the mai…
mwaxmonsky Jul 7, 2023
731a0cb
Testing allowing run of actions manually.
mwaxmonsky Jul 7, 2023
b4ba84c
Adding proper filter to job to run unit test action manually.
mwaxmonsky Jul 7, 2023
af5119b
Fixing format of workflow_dispatch declaration.
mwaxmonsky Jul 7, 2023
813e46a
Changing ordering of workflow triggers.
mwaxmonsky Jul 7, 2023
08c5503
Adding initial pylint configuration.
mwaxmonsky Jul 7, 2023
e28d5d5
Removing pylint job to evaluate in a new PR.
mwaxmonsky Jul 7, 2023
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
20 changes: 20 additions & 0 deletions .github/workflows/capgen_unit_tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Capgen Unit Tests

on:
pull_request:
types: [opened, synchronize, reopened]
push:
branches:
#Trigger workflow on push to any branch or branch heirarchy:
- '**'

jobs:
unit_tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: update repos and install dependencies
run: sudo apt-get update && sudo apt-get install -y build-essential gfortran cmake python3 git
- name: Run unit tests
run: cd test && ./run_tests.sh

15 changes: 9 additions & 6 deletions test/run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,14 @@ if [ $res -ne 0 ]; then
fi

# Run var_action test
./var_action_test/run_test
res=$?
errcnt=$((errcnt + res))
if [ $res -ne 0 ]; then
echo "Failure running var_action test"
fi
# TODO: Re-enable after feature fully implemented.
# ./var_action_test/run_test
# res=$?
# errcnt=$((errcnt + res))
# if [ $res -ne 0 ]; then
# echo "Failure running var_action test"
# fi
nusbaume marked this conversation as resolved.
Show resolved Hide resolved
echo "Skipping var_action_test/run_test until feature is fully implemented"

# Run doctests
./run_doctest.sh
Expand All @@ -67,4 +69,5 @@ if [ $errcnt -eq 0 ]; then
echo "All tests PASSed!"
else
echo "${errcnt} tests FAILed"
return 1
fi