diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 7ddd26fe..b82b8431 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -1,24 +1,11 @@ -# For most projects, this workflow file will not need changing; you simply need -# to commit it to your repository. -# -# You may wish to alter this file to override the set of languages analyzed, -# or to provide custom queries or build logic. -# -# ******** NOTE ******** -# We have attempted to detect the languages in your repository. Please check -# the `language` matrix defined below to confirm you have the correct set of -# supported CodeQL languages. -# name: "CodeQL" on: push: - branches: [ master ] + branches: [ "master", "development" ] pull_request: # The branches below must be a subset of the branches above - branches: [ master ] - schedule: - - cron: '44 14 * * 3' + branches: [ "master", "development" ] jobs: analyze: @@ -39,7 +26,7 @@ jobs: # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL - uses: github/codeql-action/init@v1 + uses: github/codeql-action/init@v2 with: languages: ${{ matrix.language }} # If you wish to specify custom queries, you can do so here or in a config file. @@ -47,21 +34,5 @@ jobs: # Prefix the list here with "+" to use these queries and those in the config file. # queries: ./path/to/local/query, your-org/your-repo/queries@main - # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). - # If this step fails, then you should remove it and run the build manually (see below) - - name: Autobuild - uses: github/codeql-action/autobuild@v1 - - # ℹ️ Command-line programs to run using the OS shell. - # 📚 https://git.io/JvXDl - - # ✏️ If the Autobuild fails above, remove it and uncomment the following three lines - # and modify them (or add more) to build your code if your project - # uses a compiled language - - #- run: | - # make bootstrap - # make release - - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v1 + uses: github/codeql-action/analyze@v2 diff --git a/.github/workflows/django.yml b/.github/workflows/django.yml new file mode 100644 index 00000000..8cd09be9 --- /dev/null +++ b/.github/workflows/django.yml @@ -0,0 +1,44 @@ +name: Django CI + +on: + push: + branches: [ "master", "development" ] + pull_request: + branches: [ "master", "development" ] + +jobs: + build: + runs-on: ubuntu-latest + strategy: + max-parallel: 4 + matrix: + python-version: [3.11] + services: + postgres: + image: postgres:latest + env: + POSTGRES_USER: postgres + POSTGRES_PASSWORD: postgres + POSTGRES_DB: csinfo + ports: + - 5432:5432 + options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5 + env: + DJANGO_SECRET_KEY: "dummy" + DATABASE_URL: "postgres://postgres:postgres@127.0.0.1:5432/csinfo" + steps: + - uses: actions/checkout@v3 + - 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/requirements-dev.txt + - name: Run Migrations + run: | + python manage.py migrate + - name: Run Tests + run: | + python manage.py test diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 00000000..2d7e6311 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "static/bootstrap"] + path = static/bootstrap + url = https://github.com/hcrudolph/csi-bootstrap-theme.git diff --git a/blog/templates/blog/recent_posts.html b/blog/templates/blog/recent_posts.html index d2505b68..38687e75 100644 --- a/blog/templates/blog/recent_posts.html +++ b/blog/templates/blog/recent_posts.html @@ -6,7 +6,7 @@

Recent Posts

-
+