Skip to content

Commit

Permalink
Merge 9bb16a3 into 1a9dca9
Browse files Browse the repository at this point in the history
  • Loading branch information
jlaney committed Feb 22, 2023
2 parents 1a9dca9 + 9bb16a3 commit 9b3baf4
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 19 deletions.
21 changes: 11 additions & 10 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ name: tests
env:
APP_NAME: grade_conversion_calculator
CONF_PATH: conf
COVERAGE_DJANGO_VERSION: 2.2
COVERAGE_DJANGO_VERSION: 3.2

on:
push:
Expand All @@ -42,25 +42,26 @@ on:

jobs:
test:
runs-on: ubuntu-18.04
runs-on: ubuntu-20.04

strategy:
matrix:
django-version:
- '2.2'
- '3.2'
- '4.1'

steps:
- name: Checkout Repo
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Setup Python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: 3.6
python-version: 3.8

- name: Set up Node.js
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: '12'

Expand Down Expand Up @@ -109,16 +110,16 @@ jobs:

needs: test

runs-on: ubuntu-18.04
runs-on: ubuntu-20.04

steps:
- name: Checkout Repo
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Setup Python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: '3.x'
python-version: 3.8

- name: Publish to PyPi
uses: uw-it-aca/actions/publish-pypi@main
Expand Down
3 changes: 2 additions & 1 deletion conf/urls.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from django.urls import include, re_path
from django.conf.urls import include
from django.urls import re_path
from django.views.i18n import JavaScriptCatalog


Expand Down
2 changes: 1 addition & 1 deletion grade_conversion_calculator/tests/test_views.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2021 UW-IT, University of Washington
# Copyright 2023 UW-IT, University of Washington
# SPDX-License-Identifier: Apache-2.0

from django.test import TestCase
Expand Down
6 changes: 3 additions & 3 deletions grade_conversion_calculator/urls.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Copyright 2021 UW-IT, University of Washington
# Copyright 2023 UW-IT, University of Washington
# SPDX-License-Identifier: Apache-2.0

from django.urls import re_path
from grade_conversion_calculator.views import demo
from grade_conversion_calculator.views import DemoView


urlpatterns = [
re_path(r'^calculator-demo/?$', demo, name='calculator_demo'),
re_path(r'^calculator-demo', DemoView.as_view(), name='calculator_demo'),
]
9 changes: 5 additions & 4 deletions grade_conversion_calculator/views.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# Copyright 2021 UW-IT, University of Washington
# Copyright 2023 UW-IT, University of Washington
# SPDX-License-Identifier: Apache-2.0

from django.shortcuts import render

from django.views.generic import TemplateView

def demo(request):
return render(request, "demo.html", {})

class DemoView(TemplateView):
template_name = 'demo.html'

0 comments on commit 9b3baf4

Please sign in to comment.