-
-
Notifications
You must be signed in to change notification settings - Fork 134
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
74 additions
and
175 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
name: CI/CD | ||
|
||
on: | ||
- merge_group | ||
- pull_request | ||
- push | ||
- workflow_dispatch | ||
|
||
env: | ||
FORCE_COLOR: 1 | ||
|
||
concurrency: | ||
cancel-in-progress: true | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
|
||
jobs: | ||
pre-commit: | ||
name: Run pre-commit | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out Repository | ||
uses: actions/checkout@v4 | ||
- name: Set up Python | ||
uses: actions/setup-python@v5.0.0 | ||
with: | ||
python-version: 3.11.2 | ||
- name: Run pre-commit | ||
uses: pre-commit/action@v3.0.1 | ||
|
||
code-ql: | ||
name: Run CodeQL | ||
needs: | ||
- pre-commit | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
language: | ||
- 'javascript' | ||
- 'python' | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
- name: Initialize CodeQL | ||
uses: github/codeql-action/init@v2 | ||
with: | ||
languages: ${{ matrix.language }} | ||
- name: Autobuild | ||
uses: github/codeql-action/autobuild@v2 | ||
- name: Perform CodeQL Analysis | ||
uses: github/codeql-action/analyze@v2 | ||
|
||
test: | ||
name: Run Tests | ||
needs: | ||
- code-ql | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: nanasess/setup-chromedriver@v2 | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python 3.11.2 | ||
run: pipx install poetry | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.11.2 | ||
cache: 'poetry' | ||
- name: Install dependencies | ||
run: poetry install | ||
- name: Collect static files | ||
run: poetry run python manage.py collectstatic --noinput | ||
- name: Run tests | ||
run: poetry run xvfb-run --auto-servernum python manage.py test -v 3 --failfast |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.