-
-
Notifications
You must be signed in to change notification settings - Fork 159
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into enhancement/issue-1627-1
- Loading branch information
Showing
30 changed files
with
672 additions
and
10,263 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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: CI/CD | ||
name: CI/CD Optimized | ||
|
||
on: | ||
merge_group: | ||
|
@@ -14,28 +14,53 @@ concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
|
||
jobs: | ||
pre-commit: | ||
name: Run pre-commit | ||
setup: | ||
name: Setup and Cache Dependencies | ||
runs-on: ubuntu-latest | ||
permissions: | ||
issues: write | ||
pull-requests: write | ||
contents: write | ||
actions: write | ||
|
||
contents: read # Minimal permission for checking out code | ||
outputs: | ||
python-cache-dir: ${{ steps.poetry-cache.outputs.dir }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Cache pre-commit hooks | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/.cache/pre-commit # Adjust the path based on where pre-commit stores its hooks. | ||
path: ~/.cache/pre-commit | ||
key: ${{ runner.os }}-pre-commit-${{ hashFiles('.pre-commit-config.yaml') }} | ||
restore-keys: | | ||
${{ runner.os }}-pre-commit- | ||
- name: Check out Repository | ||
uses: actions/checkout@v4 | ||
- name: Set up Python | ||
uses: actions/[email protected] | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: 3.11.2 | ||
|
||
- name: Get Poetry cache directory | ||
id: poetry-cache | ||
run: echo "::set-output name=dir::$(poetry config cache-dir)" | ||
|
||
- name: Cache Poetry dependencies | ||
uses: actions/cache@v3 | ||
with: | ||
path: ${{ steps.poetry-cache.outputs.dir }} | ||
key: ${{ runner.os }}-poetry-${{ hashFiles('**/poetry.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-poetry- | ||
pre-commit: | ||
name: Run pre-commit | ||
needs: setup | ||
runs-on: ubuntu-latest | ||
permissions: | ||
issues: write | ||
pull-requests: write | ||
contents: write | ||
actions: write | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: 3.11.2 | ||
- name: Run pre-commit | ||
|
@@ -49,25 +74,19 @@ jobs: | |
security-events: write | ||
actions: read | ||
contents: read | ||
|
||
strategy: | ||
fail-fast: true | ||
matrix: | ||
language: | ||
- 'javascript' | ||
- 'python' | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
- name: Initialize CodeQL | ||
uses: github/codeql-action/init@v2 | ||
- uses: actions/checkout@v2 | ||
- 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 | ||
- uses: github/codeql-action/autobuild@v2 | ||
- uses: github/codeql-action/analyze@v2 | ||
|
||
test: | ||
name: Run Tests | ||
|
@@ -78,30 +97,13 @@ jobs: | |
pull-requests: write | ||
contents: write | ||
actions: write | ||
|
||
steps: | ||
- name: Get Poetry cache | ||
id: poetry-cache | ||
run: echo "::set-output name=dir::$(poetry config cache-dir)" | ||
|
||
- name: Cache Python dependencies | ||
uses: actions/cache@v3 | ||
with: | ||
path: ${{ steps.poetry-cache.outputs.dir }} | ||
key: ${{ runner.os }}-poetry-${{ hashFiles('**/poetry.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-poetry- | ||
- uses: nanasess/setup-chromedriver@v2 | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.11.2 | ||
- name: Install Poetry | ||
run: pip install poetry | ||
- name: Install dependencies | ||
run: poetry install | ||
- name: Collect static files | ||
run: poetry run python manage.py collectstatic --noinput | ||
- run: pip install poetry | ||
- run: poetry install | ||
- 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 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
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
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
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
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,17 @@ | ||
# Generated by Django 5.0.2 on 2024-03-06 20:42 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("website", "0083_alter_invitefriend_options_and_more"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name="issue", | ||
name="cve_id", | ||
field=models.CharField(blank=True, max_length=16, null=True), | ||
), | ||
] |
27 changes: 27 additions & 0 deletions
27
website/migrations/0084_rename_crypto_address_userprofile_bch_address_and_more.py
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,27 @@ | ||
# Generated by Django 5.0.2 on 2024-03-05 08:10 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("website", "0083_alter_invitefriend_options_and_more"), | ||
] | ||
|
||
operations = [ | ||
migrations.RenameField( | ||
model_name="userprofile", | ||
old_name="crypto_address", | ||
new_name="bch_address", | ||
), | ||
migrations.AddField( | ||
model_name="userprofile", | ||
name="btc_address", | ||
field=models.CharField(blank=True, max_length=100, null=True), | ||
), | ||
migrations.AddField( | ||
model_name="userprofile", | ||
name="eth_address", | ||
field=models.CharField(blank=True, max_length=100, null=True), | ||
), | ||
] |
12 changes: 12 additions & 0 deletions
12
website/migrations/0085_merge_0084_contributorstats_0084_issue_cve_id.py
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,12 @@ | ||
# Generated by Django 5.0.2 on 2024-03-07 05:58 | ||
|
||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("website", "0084_contributorstats"), | ||
("website", "0084_issue_cve_id"), | ||
] | ||
|
||
operations = [] |
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,12 @@ | ||
# Generated by Django 5.0.2 on 2024-03-07 06:47 | ||
|
||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("website", "0084_contributorstats"), | ||
("website", "0084_rename_crypto_address_userprofile_bch_address_and_more"), | ||
] | ||
|
||
operations = [] |
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,12 @@ | ||
# Generated by Django 5.0.2 on 2024-03-08 05:00 | ||
|
||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("website", "0085_merge_0084_contributorstats_0084_issue_cve_id"), | ||
("website", "0085_merge_20240307_1217"), | ||
] | ||
|
||
operations = [] |
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.