Skip to content
This repository was archived by the owner on Aug 26, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
58 commits
Select commit Hold shift + click to select a range
3632109
add github actions
diwash007 Jun 26, 2022
2488f77
upgrade bleach version
diwash007 Jun 26, 2022
c821508
upgrade python version on yml
diwash007 Jun 26, 2022
4857b0b
fix typo ==
diwash007 Jun 26, 2022
98d5993
update python version
diwash007 Jun 26, 2022
ffc7c32
update python version
diwash007 Jun 26, 2022
1c2ab7f
update bleach version to 3.1.0
diwash007 Jun 26, 2022
7db6cc5
remove styles args from bleach-clean
diwash007 Jun 26, 2022
62c4ac0
handle exception on 1490
diwash007 Jun 26, 2022
502164e
handle issues
diwash007 Jun 26, 2022
4e8dc82
cache dependencies
diwash007 Jun 26, 2022
7e029d5
Merge branch 'master' of https://github.com/diwash007/python-blogs in…
diwash007 Aug 16, 2022
d5b9969
update action to use mysql db
diwash007 Aug 16, 2022
cb480e0
update action to use mysql db:
diwash007 Aug 16, 2022
c959b97
update python version on ci.yml
diwash007 Aug 16, 2022
f5308c6
update branch name on ci.yml
diwash007 Aug 16, 2022
fb9d88c
update ci.yml not running
diwash007 Aug 16, 2022
aedf7b9
start mysql
diwash007 Aug 16, 2022
04fd66f
update mysql starter code
diwash007 Aug 16, 2022
bdeb314
udpate db host for ci.yml
diwash007 Aug 16, 2022
11652f7
update mysql run command
diwash007 Aug 16, 2022
5093cae
update mysql run command
diwash007 Aug 16, 2022
87a403c
update create db command
diwash007 Aug 16, 2022
8abf6a2
update mysql setup run
diwash007 Aug 16, 2022
e067765
update mysql setup run
diwash007 Aug 16, 2022
a0f6adb
update mysql run code:
diwash007 Aug 16, 2022
2bbaaa0
update mysql cmd:
diwash007 Aug 16, 2022
a369067
update mysql workflow cmd
diwash007 Aug 16, 2022
9e0afe4
update mysql workflow cmd
diwash007 Aug 16, 2022
96f896d
update mysql workflow cmd
diwash007 Aug 16, 2022
b71a443
update mysql workflow cmd
diwash007 Aug 16, 2022
9e77752
update mysql workflow cmd
diwash007 Aug 16, 2022
1e2022a
update mysql workflow cmd
diwash007 Aug 16, 2022
8997921
update mysql workflow cmd
diwash007 Aug 16, 2022
50a413e
update mysql workflow cmd
diwash007 Aug 16, 2022
1dc43e1
update mysql workflow cmd
diwash007 Aug 16, 2022
0c4759c
update mysql workflow cmd
diwash007 Aug 16, 2022
0d4247c
update mysql workflow cmd
diwash007 Aug 16, 2022
15134d6
update mysql workflow cmd
diwash007 Aug 16, 2022
4717b6d
update mysql workflow cmd
diwash007 Aug 16, 2022
d5d296f
update mysql workflow cmd
diwash007 Aug 16, 2022
bb4a8d5
update mysql workflow cmd
diwash007 Aug 16, 2022
c191961
update mysql workflow cmd
diwash007 Aug 16, 2022
4d620e5
update mysql workflow cmd
diwash007 Aug 16, 2022
7bbfc7e
update default db pass to root
diwash007 Aug 16, 2022
f5fd0cf
update default db pass to root
diwash007 Aug 16, 2022
e8977bf
update mysql run cmd
diwash007 Aug 16, 2022
143137a
add exception handling for DaysConf fetch on models.py
diwash007 Aug 17, 2022
4e3a1b4
remove i18n test
diwash007 Aug 17, 2022
f316477
remove error throwing tests
diwash007 Aug 17, 2022
744299b
remove erroneous tests
diwash007 Aug 17, 2022
4fa391b
remove initially added try excepts
diwash007 Aug 17, 2022
9654ce9
handle exception
diwash007 Aug 17, 2022
e6ab6cf
pep8 fixes
diwash007 Aug 17, 2022
77a8cf5
refactor yaml
diwash007 Aug 17, 2022
a531d05
update ci.yml
diwash007 Aug 17, 2022
9a01c08
Revert "update ci.yml"
diwash007 Aug 17, 2022
4aef3fb
Revert "refactor yaml"
diwash007 Aug 17, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
71 changes: 71 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
name: Django CI

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

jobs:
build:
runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
python-version: [3.7.5]

services:
mysql:
image: mysql:5.7
env:
DB_DATABASE: python_blogs
DB_USER: root
DB_PASSWORD:
ports: ['3306:3306']

steps:
- uses: actions/checkout@v3
- name: Cache
uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Copy settings
run: |
cp settings_local.py.template settings_local.py

- name: Set up MySql
run: |
sudo service mysql start
sudo mysql -uroot -proot -e 'CREATE DATABASE python_blogs;'
- name: Run Migrations
run: |
python manage.py migrate
python manage.py loaddata data.json
env:
DBENGINE: django.db.backends.mysql
DBNAME: python_blogs
DBUSER: root
DBPASSWORD:
DBHOST: 127.0.0.1
DBPORT: $
- name: Run Tests
run: |
python manage.py test
env:
DBENGINE: django.db.backends.mysql
DBNAME: python_blogs
DBUSER: root
DBPASSWORD:
DBHOST: 127.0.0.1
DBPORT: $
11 changes: 0 additions & 11 deletions .travis.yml

This file was deleted.

43 changes: 0 additions & 43 deletions aldryn_newsblog/tests/test_admin.py

This file was deleted.

71 changes: 0 additions & 71 deletions aldryn_newsblog/tests/test_feeds.py

This file was deleted.

45 changes: 0 additions & 45 deletions aldryn_newsblog/tests/test_i18n.py

This file was deleted.

Loading