Skip to content

Commit

Permalink
Initial Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
tsirysndr committed Aug 18, 2024
0 parents commit e6e5cb7
Show file tree
Hide file tree
Showing 24 changed files with 786 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: ci
on:
push:
branches:
- main
jobs:
tasks:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Fluent CI
uses: fluentci-io/setup-fluentci@v5
with:
wasm: true
plugin: mariadb
args: start
env:
GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
MARIADB_USER: user
MARIADB_PASSWORD: testrootpass
MARIADB_DATABASE: todo
- name: test
run: fluentci run --wasm django test
env:
MARIADB_DATABASE: todo
MARIADB_USER: user
MARIADB_PASSWORD: testrootpass
MARIADB_ROOT_PASSWORD: root
MARIADB_HOST: 127.0.0.1
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.devbox
__pycache__
19 changes: 19 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
Copyright (c) 2023 Tsiry Sandratraina <[email protected]>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# FluentCI CI/CD demo for Django

[![ci](https://github.com/fluentci-demos/fluentci-demo-python-django/actions/workflows/ci.yml/badge.svg)](https://github.com/fluentci-demos/fluentci-demo-python-django/actions/workflows/ci.yml)

This is an example application and CI/CD pipeline showing how to build, test a Python Django application using FluentCI.

4 changes: 4 additions & 0 deletions dagger.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"name": "django",
"sdk": "github.com/fluentci-io/daggerverse/deno-sdk@main"
}
27 changes: 27 additions & 0 deletions devbox.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"packages": {
"python": "3.12",
"python312Packages.pip": "latest",
"mysql80": {
"version": "latest",
"disable_plugin": true
},
"pkg-config": "latest",
"libmysqlclient": "latest"
},
"shell": {
"init_hook": [
"echo 'Welcome to devbox!' > /dev/null",
". $VENV_DIR/bin/activate",
"python -m pip install -r requirements.txt --use-pep517"
],
"scripts": {
"test": [
"python todo_project/manage.py makemigrations",
"python todo_project/manage.py migrate",
"python todo_project/manage.py check",
"python todo_project/manage.py test"
]
}
}
}
Loading

0 comments on commit e6e5cb7

Please sign in to comment.