Skip to content

Commit

Permalink
Add initial GHA workflow for CI/CD
Browse files Browse the repository at this point in the history
  • Loading branch information
TrevorThomson committed Mar 14, 2024
1 parent 8fd017b commit 36b347a
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -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
Empty file added tests/__init__.py
Empty file.
Empty file added tests/api/__init__.py
Empty file.
Empty file added tests/model/__init__.py
Empty file.

0 comments on commit 36b347a

Please sign in to comment.