-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into jenkins/cleanup-python-code-d1a78ca
- Loading branch information
Showing
42 changed files
with
1,482 additions
and
829 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,19 @@ | ||
# Run the workflow that adds new tickets that are either: | ||
# - labelled "DEPR" | ||
# - title starts with "[DEPR]" | ||
# - body starts with "Proposal Date" (this is the first template field) | ||
# to the org-wide DEPR project board | ||
|
||
name: Add newly created DEPR issues to the DEPR project board | ||
|
||
on: | ||
issues: | ||
types: [opened] | ||
|
||
jobs: | ||
routeissue: | ||
uses: openedx/.github/.github/workflows/add-depr-ticket-to-depr-board.yml@master | ||
secrets: | ||
GITHUB_APP_ID: ${{ secrets.GRAPHQL_AUTH_APP_ID }} | ||
GITHUB_APP_PRIVATE_KEY: ${{ secrets.GRAPHQL_AUTH_APP_PEM }} | ||
SLACK_BOT_TOKEN: ${{ secrets.SLACK_ISSUE_BOT_TOKEN }} |
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,20 @@ | ||
# This workflow runs when a comment is made on the ticket | ||
# If the comment starts with "label: " it tries to apply | ||
# the label indicated in rest of comment. | ||
# If the comment starts with "remove label: ", it tries | ||
# to remove the indicated label. | ||
# Note: Labels are allowed to have spaces and this script does | ||
# not parse spaces (as often a space is legitimate), so the command | ||
# "label: really long lots of words label" will apply the | ||
# label "really long lots of words label" | ||
|
||
name: Allows for the adding and removing of labels via comment | ||
|
||
on: | ||
issue_comment: | ||
types: [created] | ||
|
||
jobs: | ||
add_remove_labels: | ||
uses: openedx/.github/.github/workflows/add-remove-label-on-comment.yml@master | ||
|
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,86 @@ | ||
name: Migrations check on mysql8 | ||
|
||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
check_migrations: | ||
name: check migrations | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ ubuntu-20.04 ] | ||
python-version: [ 3.8 ] | ||
|
||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install system Packages | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y libxmlsec1-dev | ||
- name: Get pip cache dir | ||
id: pip-cache-dir | ||
run: | | ||
echo "::set-output name=dir::$(pip cache dir)" | ||
- name: Cache pip dependencies | ||
id: cache-dependencies | ||
uses: actions/cache@v2 | ||
with: | ||
path: ${{ steps.pip-cache-dir.outputs.dir }} | ||
key: ${{ runner.os }}-pip-${{ hashFiles('requirements/pip_tools.txt') }} | ||
restore-keys: ${{ runner.os }}-pip- | ||
|
||
- name: Ubuntu and MySQL Versions | ||
run: | | ||
lsb_release -a | ||
mysql -V | ||
- name: Install Python dependencies | ||
run: | | ||
pip install -r requirements/pip-tools.txt | ||
pip install -r requirements/test.txt | ||
pip install -r requirements/base.txt | ||
pip uninstall -y mysqlclient | ||
pip install --no-binary mysqlclient mysqlclient | ||
- name: Initiate Services | ||
run: | | ||
sudo /etc/init.d/mysql start | ||
- name: Reset mysql password | ||
run: | | ||
cat <<EOF | mysql -h 127.0.0.1 -u root --password=root | ||
UPDATE mysql.user SET authentication_string = null WHERE user = 'root'; | ||
FLUSH PRIVILEGES; | ||
EOF | ||
- name: Run migrations | ||
env: | ||
DB_ENGINE: django.db.backends.mysql | ||
MYSQL_DATABASE: submissions_db | ||
MYSQL_USER: root | ||
MYSQL_ROOT_PASSWORD: | ||
MYSQL_HOST: localhost | ||
MYSQL_PORT: 3306 | ||
run: | | ||
echo "CREATE DATABASE IF NOT EXISTS submissions_db;" | sudo mysql -u root | ||
echo "Testing migrations." | ||
if python ./manage.py makemigrations --dry-run | grep -q 'No changes detected'; then | ||
echo "Migrations up to date." | ||
else | ||
echo "ERROR: Missing migration files for model changes. Run ./manage.py makemigrations" | ||
exit 1 | ||
fi |
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 @@ | ||
# This workflow runs when a comment is made on the ticket | ||
# If the comment starts with "assign me" it assigns the author to the | ||
# ticket (case insensitive) | ||
|
||
name: Assign comment author to ticket if they say "assign me" | ||
on: | ||
issue_comment: | ||
types: [created] | ||
|
||
jobs: | ||
self_assign_by_comment: | ||
uses: openedx/.github/.github/workflows/self-assign-issue.yml@master |
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 @@ | ||
name: Upgrade Python Requirements | ||
|
||
on: | ||
schedule: | ||
- cron: "15 16 12/14 * *" | ||
workflow_dispatch: | ||
inputs: | ||
branch: | ||
description: "Target branch against which to create requirements PR" | ||
required: true | ||
default: 'master' | ||
|
||
jobs: | ||
call-upgrade-python-requirements-workflow: | ||
uses: openedx/.github/.github/workflows/upgrade-python-requirements.yml@master | ||
with: | ||
branch: ${{ github.event.inputs.branch || 'master' }} | ||
# optional parameters below; fill in if you'd like github or email notifications | ||
# user_reviewers: "" | ||
# team_reviewers: "" | ||
email_address: "[email protected]" | ||
send_success_notification: true | ||
secrets: | ||
requirements_bot_github_token: ${{ secrets.REQUIREMENTS_BOT_GITHUB_TOKEN }} | ||
requirements_bot_github_email: ${{ secrets.REQUIREMENTS_BOT_GITHUB_EMAIL }} | ||
edx_smtp_username: ${{ secrets.EDX_SMTP_USERNAME }} | ||
edx_smtp_password: ${{ secrets.EDX_SMTP_PASSWORD }} |
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 |
---|---|---|
|
@@ -60,3 +60,6 @@ test.txt.tmp | |
|
||
# Pycharm | ||
.idea/ | ||
|
||
# VSCode | ||
.vscode |
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,22 @@ | ||
# .readthedocs.yml | ||
# Read the Docs configuration file | ||
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details | ||
|
||
# Required: the version of this file's schema. | ||
version: 2 | ||
|
||
# Build documentation in the docs/ directory with Sphinx | ||
sphinx: | ||
configuration: docs/source/conf.py | ||
fail_on_warning: true | ||
|
||
# Set the version of python needed to build these docs. | ||
build: | ||
os: "ubuntu-22.04" | ||
tools: | ||
python: "3.8" | ||
|
||
# Optionally install extra requirements required to build your docs | ||
python: | ||
install: | ||
- requirements: requirements/docs.txt |
This file was deleted.
Oops, something went wrong.
File renamed without changes.
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
Oops, something went wrong.