Skip to content
This repository has been archived by the owner on Dec 7, 2021. It is now read-only.

Added test coverage generation to workflow #33

Draft
wants to merge 80 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
80 commits
Select commit Hold shift + click to select a range
8da2815
Added coverage report action
liamblake Mar 25, 2021
664a1ca
Update build-and-test.yml
liamblake Mar 25, 2021
1a080f4
Initial implementation of dynamic bowling changes
liamblake Mar 27, 2021
1e08634
Create LICENSE
liamblake Mar 27, 2021
0d68b4e
Create CODE_OF_CONDUCT.md
liamblake Mar 27, 2021
7076493
Updated badge urls
liamblake Mar 27, 2021
d051364
cleaned cmakelist
liamblake Mar 27, 2021
2c92256
Excluded test and boost from Doxyfile
liamblake Mar 27, 2021
37cb7c3
Update README.md
liamblake Mar 28, 2021
dee1cbb
Implement serialisation for all required objects (#34)
liamblake Mar 30, 2021
6efd852
Cards now serialisable (#38)
liamblake Mar 31, 2021
8360bf7
Neater workflow
liamblake Apr 2, 2021
66ab4d1
Update README.md
liamblake Apr 20, 2021
de60447
Comment out tests which fail on MacOS
liamblake Apr 20, 2021
5845d11
Initialise documentation with readthedocs
liamblake Apr 27, 2021
51acf0e
Remove doc action
liamblake Apr 27, 2021
fb3e2ec
Test index
liamblake Apr 27, 2021
5faa8ee
Add doc requirements.txt
liamblake Apr 27, 2021
4856f0f
RTD config file
liamblake Apr 27, 2021
2d8f870
Version in requirements
liamblake Apr 27, 2021
cc58162
Add Sphinx to requirements.txt
liamblake Apr 27, 2021
89e59de
Add contents.rst
liamblake Apr 27, 2021
4f7689f
Test doxygen in RTD
liamblake Apr 27, 2021
d579017
Update readme
liamblake Apr 27, 2021
992eb98
Intialise R package and workflow
liamblake Apr 27, 2021
0ef73dc
Update R workflow
liamblake Apr 27, 2021
5bc0bb5
Merge pull request #40 from LiamBlake/model-integration
liamblake Apr 27, 2021
7deb153
Initialise python wrapper dir
liamblake Apr 27, 2021
1b07ae6
Initial setup.py
liamblake Apr 27, 2021
cd8a1ad
Merge pull request #41 from LiamBlake/python-wrappers
liamblake Apr 28, 2021
b92366d
Member documentation of Stats
liamblake Apr 28, 2021
e4bdc93
Fix readme link
liamblake Apr 28, 2021
54e92da
Index outline and headers
liamblake Apr 28, 2021
9078ebb
Test with Stats struct
liamblake Apr 28, 2021
88eccee
Add missing colon
liamblake Apr 28, 2021
dd14084
Change to /
liamblake Apr 28, 2021
d918bd7
Test line
liamblake Apr 28, 2021
a353a7e
Update doxyfile WD
liamblake Apr 28, 2021
ad0f455
Remove unused arg
liamblake Apr 28, 2021
9634069
Test with header file namespace
liamblake Apr 28, 2021
5412c5d
Add python gitignore
liamblake Apr 28, 2021
927e0b2
Update gitignore to ignore doxygen generated files
liamblake Apr 28, 2021
9ca3f99
Update doxygen input
liamblake Apr 28, 2021
6f75c02
Remove namespace
liamblake Apr 28, 2021
27f1eae
Hide serialisation from doc
liamblake Apr 28, 2021
3779ae1
Merge branch 'master' into documentation
liamblake Apr 28, 2021
d6af08c
Merge pull request #44 from LiamBlake/documentation
liamblake Apr 28, 2021
a4952d9
Delete deploy.yml
liamblake Apr 28, 2021
3c3d910
Update action badge
liamblake Apr 28, 2021
a16088d
Define enumerations
liamblake Apr 28, 2021
9d01038
Conversions to string
liamblake Apr 29, 2021
e8ab833
Enum documentation
liamblake Apr 29, 2021
acd698a
Add newline for codeblock
liamblake Apr 29, 2021
d7b4f30
Change filename case
liamblake May 1, 2021
683ea3b
Documentation for Player
liamblake May 1, 2021
0fa3076
Update to enums
liamblake May 1, 2021
3d76c13
Library compiles with enums
liamblake May 4, 2021
5a5acec
Convert dismissal type model to use enum
liamblake May 4, 2021
f6b1b04
Update unit tests
liamblake May 4, 2021
d2f1930
Temporarily remove demo test from build
liamblake May 4, 2021
7c7a6ed
Unit tests should compile now
liamblake May 4, 2021
8610613
Minor change to CMakeLists
liamblake May 4, 2021
767b539
Fix CMakeLists source name case
liamblake May 4, 2021
3254019
Corrected case everywhere
liamblake May 4, 2021
50a2ab2
Fix captial letter
liamblake May 4, 2021
7fa7669
Remove demo from actions
liamblake May 4, 2021
9a41509
Merge pull request #45 from LiamBlake/enum-types
liamblake May 4, 2021
8416b61
Refactoring of Code + Documentation (#46)
liamblake May 20, 2021
1d8d228
Added coverage report action
liamblake Mar 25, 2021
e04e514
Merge branch 'workflow_coverage' of https://github.com/liamblake/test…
liamblake May 23, 2021
6c8e3db
codecov action
liamblake May 23, 2021
2cd33b4
Move to main workflow
liamblake May 23, 2021
d166f20
checkout fetch depth 0
liamblake May 23, 2021
b2af6b2
Add compiler flags
liamblake May 23, 2021
0ac8460
List for debugging
liamblake May 23, 2021
dffa99d
coverage config in cmake
liamblake May 23, 2021
a24bd99
Fix
liamblake May 23, 2021
cbf8457
More list
liamblake May 23, 2021
20a0f83
List after generation
liamblake May 23, 2021
149b88e
Add config flag to build
liamblake May 23, 2021
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
6 changes: 4 additions & 2 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
---
Language: Cpp
BasedOnStyle: LLVM
IndentWidth: 4
PointerAlignment: Left
AlwaysBreakTemplateDeclarations: Yes
#EmptyLineBeforeAccessModifier: Always
AccessModifierOffset: -1
AccessModifierOffset: -2
IndentCaseLabels: true
IncludeBlocks: Regroup
65 changes: 0 additions & 65 deletions .github/workflows/autotest-windows.yml

This file was deleted.

27 changes: 0 additions & 27 deletions .github/workflows/build-and-test.yml

This file was deleted.

72 changes: 72 additions & 0 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
# Runs all required checks of any code being committed to the main branch
name: code checks

on:
pull_request:
branches: [master]
push:
branches: [master]
workflow_dispatch:

jobs:
build-and-test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]

steps:
- uses: actions/checkout@v2

- name: Install Boost (Linux)
if: runner.os == 'Linux'
run: sudo apt-get update && sudo apt-get install -yq libboost-all-dev

- name: Install Boost (macOS)
if: runner.os == 'macOS'
run: brew install boost

- name: Install code coverage tools
if: runner.os == 'Linux'
run: sudo pip install codecov && sudo apt-get install -y lcov

- name: Create build environment
run: mkdir build

- name: Create makefiles (Linux)
if: runner.os == 'Linux'
run: cmake -Bbuild -H.

- name: Create makefiles (masOS)
if: runner.os == 'macOs'
run: cmake -Bbuild -H. -DBOOST_ROOT=/usr/local/Cellar/boost

- name: Build
run: cmake --build build/ --target all --config

- name: Generate coverage report
if: runner.os == 'Linux'
run: lcov --directory src --capture --output-file coverage.info

- name: Run unit tests
run: cd build && ctest --verbose

- name: list
run: ls && cd src && ls && cd ../build && ls

- name: Upload coverage report
if: runner.os == 'Linux'
run: bash <(curl -s https://codecov.io/bash) -f coverage.info || echo "Codecov did not collect coverage reports"

linter:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: DoozyX/clang-format-lint-action@v0.11
with:
source: "src include"
extensions: "h,cpp"
clangFormatVersion: 11
exclude: test/*
26 changes: 0 additions & 26 deletions .github/workflows/generate_docs.yml

This file was deleted.

54 changes: 54 additions & 0 deletions .github/workflows/models.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
on:
pull_request:
branches: [model-integration]
workflow_dispatch:

jobs:
train-models:
runs-on: ${{ matrix.config.os }}

name: ${{ matrix.config.os }} (${{ matrix.config.r }})

strategy:
fail-fast: false
matrix:
config:
- {os: ubuntu-latest, r: 'release'}

env:
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
RSPM: ${{ matrix.config.rspm }}
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}

steps:
- uses: actions/checkout@v2

- uses: r-lib/actions/setup-r@master
with:
r-version: ${{ matrix.config.r }}
http-user-agent: ${{ matrix.config.http-user-agent }}

- name: Change to package dir
run: cd models

- uses: r-lib/actions/setup-pandoc@master

- name: Query dependencies
run: |
install.packages('remotes')
install.packages('sessioninfo')
saveRDS(remotes::dev_package_deps(dependencies = TRUE), ".github/depends.Rds", version = 2)
writeLines(sprintf("R-%i.%i", getRversion()$major, getRversion()$minor), ".github/R-version")
shell: Rscript {0}

- name: Cache R packages
uses: actions/cache@v1
with:
path: ${{ env.R_LIBS_USER }}
key: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1-${{ hashFiles('.github/depends.Rds') }}
restore-keys: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1-

- name: Install dependencies
run: |
remotes::install_deps(dependencies = TRUE)
shell: Rscript {0}
Loading