Skip to content

Commit

Permalink
256: change over to github actions (#257)
Browse files Browse the repository at this point in the history
* Rework CI

Moved from docker images and circle CI to github actions. Lost the ability to run it locally as it runs in github actions for now, but otherwise it seems better. During the rework, broke the problem into two parts: static and dynamic.

The static analysis does everything from code style (black) to analysis (pylint). Many tools are used for each of the checks including some home grown tools for dawgie compliance.

The dynamic bit is pytest with coverage to be added in the future. The current coverage checks never worked all that well, but will to try it again with new system. The dynamic can also expand to include larger more complex integrated tests if need be.
  • Loading branch information
al-niessner authored Jan 17, 2025
1 parent 8d9eab0 commit 3c6e256
Show file tree
Hide file tree
Showing 158 changed files with 15,654 additions and 6,583 deletions.
2 changes: 1 addition & 1 deletion .ci/Dockerfile.ap
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# COPYRIGHT:
# Copyright (c) 2015-2024, California Institute of Technology ("Caltech").
# Copyright (c) 2015-2025, California Institute of Technology ("Caltech").
# U.S. Government sponsorship acknowledged.
#
# All rights reserved.
Expand Down
2 changes: 1 addition & 1 deletion .ci/Dockerfile.cit
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# COPYRIGHT:
# Copyright (c) 2015-2024, California Institute of Technology ("Caltech").
# Copyright (c) 2015-2025, California Institute of Technology ("Caltech").
# U.S. Government sponsorship acknowledged.
#
# All rights reserved.
Expand Down
2 changes: 1 addition & 1 deletion .ci/Dockerfile.dit
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# COPYRIGHT:
# Copyright (c) 2015-2024, California Institute of Technology ("Caltech").
# Copyright (c) 2015-2025, California Institute of Technology ("Caltech").
# U.S. Government sponsorship acknowledged.
#
# All rights reserved.
Expand Down
2 changes: 1 addition & 1 deletion .ci/Dockerfile.ex
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# COPYRIGHT:
# Copyright (c) 2015-2024, California Institute of Technology ("Caltech").
# Copyright (c) 2015-2025, California Institute of Technology ("Caltech").
# U.S. Government sponsorship acknowledged.
#
# All rights reserved.
Expand Down
2 changes: 1 addition & 1 deletion .ci/Dockerfile.os
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# COPYRIGHT:
# Copyright (c) 2015-2024, California Institute of Technology ("Caltech").
# Copyright (c) 2015-2025, California Institute of Technology ("Caltech").
# U.S. Government sponsorship acknowledged.
#
# All rights reserved.
Expand Down
2 changes: 1 addition & 1 deletion .ci/Dockerfile.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# COPYRIGHT:
# Copyright (c) 2015-2024, California Institute of Technology ("Caltech").
# Copyright (c) 2015-2025, California Institute of Technology ("Caltech").
# U.S. Government sponsorship acknowledged.
#
# All rights reserved.
Expand Down
2 changes: 1 addition & 1 deletion .ci/check_01.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#! /usr/bin/env bash

# COPYRIGHT:
# Copyright (c) 2015-2024, California Institute of Technology ("Caltech").
# Copyright (c) 2015-2025, California Institute of Technology ("Caltech").
# U.S. Government sponsorship acknowledged.
#
# All rights reserved.
Expand Down
2 changes: 1 addition & 1 deletion .ci/check_02.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#! /usr/bin/env bash

# COPYRIGHT:
# Copyright (c) 2015-2024, California Institute of Technology ("Caltech").
# Copyright (c) 2015-2025, California Institute of Technology ("Caltech").
# U.S. Government sponsorship acknowledged.
#
# All rights reserved.
Expand Down
2 changes: 1 addition & 1 deletion .ci/check_03.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#! /usr/bin/env bash

# COPYRIGHT:
# Copyright (c) 2015-2024, California Institute of Technology ("Caltech").
# Copyright (c) 2015-2025, California Institute of Technology ("Caltech").
# U.S. Government sponsorship acknowledged.
#
# All rights reserved.
Expand Down
2 changes: 1 addition & 1 deletion .ci/check_04.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#! /usr/bin/env bash

# COPYRIGHT:
# Copyright (c) 2015-2024, California Institute of Technology ("Caltech").
# Copyright (c) 2015-2025, California Institute of Technology ("Caltech").
# U.S. Government sponsorship acknowledged.
#
# All rights reserved.
Expand Down
2 changes: 1 addition & 1 deletion .ci/check_05.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#! /usr/bin/env bash

# COPYRIGHT:
# Copyright (c) 2015-2024, California Institute of Technology ("Caltech").
# Copyright (c) 2015-2025, California Institute of Technology ("Caltech").
# U.S. Government sponsorship acknowledged.
#
# All rights reserved.
Expand Down
2 changes: 1 addition & 1 deletion .ci/exercise_00.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#! /usr/bin/env bash

# COPYRIGHT:
# Copyright (c) 2015-2024, California Institute of Technology ("Caltech").
# Copyright (c) 2015-2025, California Institute of Technology ("Caltech").
# U.S. Government sponsorship acknowledged.
#
# All rights reserved.
Expand Down
2 changes: 1 addition & 1 deletion .ci/exercise_01.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#! /usr/bin/env bash

# COPYRIGHT:
# Copyright (c) 2015-2024, California Institute of Technology ("Caltech").
# Copyright (c) 2015-2025, California Institute of Technology ("Caltech").
# U.S. Government sponsorship acknowledged.
#
# All rights reserved.
Expand Down
2 changes: 1 addition & 1 deletion .ci/pypi.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#! /usr/bin/env bash

# COPYRIGHT:
# Copyright (c) 2015-2024, California Institute of Technology ("Caltech").
# Copyright (c) 2015-2025, California Institute of Technology ("Caltech").
# U.S. Government sponsorship acknowledged.
#
# All rights reserved.
Expand Down
2 changes: 1 addition & 1 deletion .ci/release_notes.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#! /bin/bash

# COPYRIGHT:
# Copyright (c) 2015-2024, California Institute of Technology ("Caltech").
# Copyright (c) 2015-2025, California Institute of Technology ("Caltech").
# U.S. Government sponsorship acknowledged.
#
# All rights reserved.
Expand Down
10 changes: 10 additions & 0 deletions .ci/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
bandit
black
coverage
docformatter
flake8
pylint
pyroma
pytest
pytest-cov
scipy
2 changes: 1 addition & 1 deletion .ci/step_00.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#! /usr/bin/env bash

# COPYRIGHT:
# Copyright (c) 2015-2024, California Institute of Technology ("Caltech").
# Copyright (c) 2015-2025, California Institute of Technology ("Caltech").
# U.S. Government sponsorship acknowledged.
#
# All rights reserved.
Expand Down
2 changes: 1 addition & 1 deletion .ci/step_99.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# need to signal the parent Jenkins script of failure if any step fails

# COPYRIGHT:
# Copyright (c) 2015-2024, California Institute of Technology ("Caltech").
# Copyright (c) 2015-2025, California Institute of Technology ("Caltech").
# U.S. Government sponsorship acknowledged.
#
# All rights reserved.
Expand Down
2 changes: 1 addition & 1 deletion .ci/util.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

# COPYRIGHT:
# Copyright (c) 2015-2024, California Institute of Technology ("Caltech").
# Copyright (c) 2015-2025, California Institute of Technology ("Caltech").
# U.S. Government sponsorship acknowledged.
#
# All rights reserved.
Expand Down
Loading

0 comments on commit 3c6e256

Please sign in to comment.