From 36b347a1ec96f83763a40bcda74be99992791f66 Mon Sep 17 00:00:00 2001 From: Trevor Thomson Date: Wed, 13 Mar 2024 22:04:04 -0400 Subject: [PATCH] Add initial GHA workflow for CI/CD --- .github/workflows/ci.yml | 39 +++++++++++++++++++++++++++++++++++++++ tests/__init__.py | 0 tests/api/__init__.py | 0 tests/model/__init__.py | 0 4 files changed, 39 insertions(+) create mode 100644 .github/workflows/ci.yml create mode 100644 tests/__init__.py create mode 100644 tests/api/__init__.py create mode 100644 tests/model/__init__.py diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..3811623 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,39 @@ + +name: Fibo Service CI/CD + +on: + workflow_dispatch: + push: + +permissions: read-all + +concurrency: + group: '${{ github.workflow }}-${{ github.ref }}' + cancel-in-progress: true + +jobs: + validate: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Model unit tests + run: | + python --version + python -m venv .venv + source .venv/bin/activate + python -m pip install -r requirements.txt + + python -m pip install -e . + python -m unittest -s tests + + dockerize: + needs: validate + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Build docker image + run: | + echo "Hello, world!" + docker --version diff --git a/tests/__init__.py b/tests/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/tests/api/__init__.py b/tests/api/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/tests/model/__init__.py b/tests/model/__init__.py new file mode 100644 index 0000000..e69de29