Skip to content

Commit

Permalink
Update documentation, readme and update workflows (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
btschwertfeger authored Feb 2, 2024
1 parent de38577 commit 803e222
Show file tree
Hide file tree
Showing 32 changed files with 485 additions and 504 deletions.
8 changes: 8 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
*
!cmake
!src
!include
!Makefile
!tests
!validation
!CMakeLists.txt
2 changes: 1 addition & 1 deletion .github/workflows/_build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
image: alpine:3.17
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install dependencies
run: |
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/_build_doc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,17 @@ jobs:
runs-on: ${{ inputs.os }}
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up Python ${{ inputs.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ inputs.python-version }}

- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -r docs/requirements.txt
python -m pip install -r doc/requirements.txt
- name: Build the documentation
run: make doc
2 changes: 1 addition & 1 deletion .github/workflows/_pre_commit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- uses: pre-commit/[email protected]
2 changes: 1 addition & 1 deletion .github/workflows/_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
image: alpine:3.17
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install dependencies
run: |
Expand Down
36 changes: 35 additions & 1 deletion .github/workflows/cicd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ on:
push:
branches:
- "**"
schedule:
- cron: "20 16 * * 0"
release:
types: [created]

concurrency:
group: CICD-${{ github.ref }}
Expand Down Expand Up @@ -46,11 +50,41 @@ jobs:
## Create and upload a docker image
##
Docker:
if: success() && github.ref == 'refs/heads/dev'
if: success() && github.event_name == 'push'
needs: [Build, Test]
uses: ./.github/workflows/_build_docker.yaml
with:
TAG: ${{ github.ref_name }}
secrets:
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}

## Create and upload the tagged docker image
##
Docker-tag:
if: |
success() &&
github.actor == 'btschwertfeger' &&
github.event_name == 'release'
needs: [Build, Test]
uses: ./.github/workflows/_build_docker.yaml
with:
TAG: ${{ github.ref_name }}
secrets:
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}

## Create and upload the latest docker image
##
Docker-latest:
if: |
success() &&
github.actor == 'btschwertfeger' &&
github.event_name == 'release'
needs: [Build, Test]
uses: ./.github/workflows/_build_docker.yaml
with:
TAG: latest
secrets:
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
65 changes: 0 additions & 65 deletions .github/workflows/release.yaml

This file was deleted.

54 changes: 0 additions & 54 deletions .github/workflows/release.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v4.5.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
Expand Down
4 changes: 2 additions & 2 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ build:

# Build documentation in the docs/ directory with Sphinx
sphinx:
configuration: docs/conf.py
configuration: doc/conf.py

# If using Sphinx, optionally build your docs in additional formats such as PDF
# formats:
Expand All @@ -22,4 +22,4 @@ sphinx:
# Optionally declare the Python requirements required to build your docs
python:
install:
- requirements: docs/requirements.txt
- requirements: doc/requirements.txt
Loading

0 comments on commit 803e222

Please sign in to comment.