From 0312cce50317ebdb9a8a5adc21f65645191b79ea Mon Sep 17 00:00:00 2001 From: Bhupesh Varshney Date: Thu, 23 Jan 2020 19:47:58 +0530 Subject: [PATCH 1/6] create django.yml --- ci/django.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 ci/django.yml diff --git a/ci/django.yml b/ci/django.yml new file mode 100644 index 0000000..031c230 --- /dev/null +++ b/ci/django.yml @@ -0,0 +1,29 @@ +name: Django Build + +on: [push] + +jobs: + build: + + runs-on: ubuntu-latest + strategy: + max-parallel: 4 + matrix: + python-version: [3.6, 3.7, 3.8] + + steps: + - uses: actions/checkout@v1 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v1 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + - name: Run Tests + env: + SECRET_KEY: ${{ secrets.SECRET_KEY }} + DEBUG: False + run: | + python manage.py test From 966381e246103a97f2fb9e09dc1d3158cfe971da Mon Sep 17 00:00:00 2001 From: Bhupesh Varshney Date: Thu, 23 Jan 2020 19:50:34 +0530 Subject: [PATCH 2/6] Create django.properties.json --- ci/properties/django.properties.json | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 ci/properties/django.properties.json diff --git a/ci/properties/django.properties.json b/ci/properties/django.properties.json new file mode 100644 index 0000000..9e1f6c9 --- /dev/null +++ b/ci/properties/django.properties.json @@ -0,0 +1,6 @@ +{ + "name": "Django CI", + "description": "Build and Test a Django Project", + "iconName": "django", + "categories": ["Python", "Django"] +} From 533b24eb42d278f5cfe943a0e720703cd9119a39 Mon Sep 17 00:00:00 2001 From: Bhupesh Varshney Date: Thu, 23 Jan 2020 19:58:58 +0530 Subject: [PATCH 3/6] Update django.properties.json --- ci/properties/django.properties.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/properties/django.properties.json b/ci/properties/django.properties.json index 9e1f6c9..3015441 100644 --- a/ci/properties/django.properties.json +++ b/ci/properties/django.properties.json @@ -1,5 +1,5 @@ { - "name": "Django CI", + "name": "Django", "description": "Build and Test a Django Project", "iconName": "django", "categories": ["Python", "Django"] From e1de33dd71f0e74b0b762d3895c8e4d26ebb06e9 Mon Sep 17 00:00:00 2001 From: Bhupesh Varshney Date: Thu, 23 Jan 2020 20:02:46 +0530 Subject: [PATCH 4/6] Update django.yml --- ci/django.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ci/django.yml b/ci/django.yml index 031c230..fc9fda8 100644 --- a/ci/django.yml +++ b/ci/django.yml @@ -1,4 +1,4 @@ -name: Django Build +name: Django CI on: [push] @@ -17,12 +17,12 @@ jobs: uses: actions/setup-python@v1 with: python-version: ${{ matrix.python-version }} - - name: Install dependencies + - name: Install Dependencies run: | python -m pip install --upgrade pip pip install -r requirements.txt - name: Run Tests - env: + env: #define SECRET_KEY in Secrets SECRET_KEY: ${{ secrets.SECRET_KEY }} DEBUG: False run: | From 43b0ff3ed0bc90b4c81e33b53c257e07257fd558 Mon Sep 17 00:00:00 2001 From: Bhupesh Varshney Date: Tue, 4 Feb 2020 14:05:26 +0530 Subject: [PATCH 5/6] use actions v2 --- ci/django.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/django.yml b/ci/django.yml index fc9fda8..9f064b0 100644 --- a/ci/django.yml +++ b/ci/django.yml @@ -12,7 +12,7 @@ jobs: python-version: [3.6, 3.7, 3.8] steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v1 with: From b1cd1732eb4b79893de239f5d4a7a39f423fb800 Mon Sep 17 00:00:00 2001 From: Bhupesh Varshney Date: Fri, 7 Feb 2020 18:37:20 +0530 Subject: [PATCH 6/6] remove additional config Removed Additional setup for reading SECRET_KEYs --- ci/django.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/ci/django.yml b/ci/django.yml index 9f064b0..bcdd8ba 100644 --- a/ci/django.yml +++ b/ci/django.yml @@ -22,8 +22,5 @@ jobs: python -m pip install --upgrade pip pip install -r requirements.txt - name: Run Tests - env: #define SECRET_KEY in Secrets - SECRET_KEY: ${{ secrets.SECRET_KEY }} - DEBUG: False run: | python manage.py test