-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clarification Changes #9141
Open
LincolnOlsen
wants to merge
31
commits into
fossasia:development
Choose a base branch
from
ncclarke:development
base: development
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Clarification Changes #9141
Changes from all commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
42d6f41
Updated to include quick note for running locally on windows machines
ncclarke 7d28938
fixed spelling mistakes
ncclarke 1e85664
Chore: Added documentation to sqlite_datetime_fix and its methods.
T2703 4005d1d
Small changes to the added note
AdamMJennissen 0492dc0
Update versioning.py with comments
Cbolt17 b3b913a
Merge branch 'development' of github.com:ncclarke/open-event-server i…
AdamMJennissen 865a29b
Lincoln's documentation edit on the app/api/admin_sales/events.py file
LincolnOlsen de0e5b4
Merge branch 'development' of https://github.com/ncclarke/open-event-…
LincolnOlsen 3a5f2b3
Add files via upload
Cbolt17 1b9ed25
Readme for workflow
ncclarke 64e4c4b
Add or update the Azure App Service build and deployment workflow config
ncclarke 0d26697
Update development_open-event-server.yml
ncclarke 2fd323e
Update development_open-event-server.yml
ncclarke d4e0e87
Update development_open-event-server.yml
ncclarke 452a3f2
Update development_open-event-server.yml
ncclarke 62ce0ce
Update development_open-event-server.yml
ncclarke 8beb415
Create .env
ncclarke 7749462
Update config.py
ncclarke 1806387
Update .env
ncclarke defa51a
Create common
ncclarke c68da26
Add files via upload
ncclarke 77a4ed4
Update development_open-event-server.yml
ncclarke c68eed7
Delete utils directory
ncclarke 4f38b4a
Update development_open-event-server.yml
ncclarke 3060823
Update development_open-event-server.yml
ncclarke 17c7f0e
Update development_open-event-server.yml
ncclarke ff694d3
Update development_open-event-server.yml
ncclarke 54531e3
Update development_open-event-server.yml
ncclarke a930a78
Update development_open-event-server.yml
ncclarke 645358c
Update development_open-event-server.yml
ncclarke fd9e021
Update development_open-event-server.yml
ncclarke File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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,16 @@ | ||
# Azure PostgreSQL connection string | ||
AZURE_POSTGRESQL_CONNECTIONSTRING="dbname=open-event-server-database host=open-event-server-server.postgres.database.azure.com port=5432 sslmode=require user=username password=password" | ||
|
||
# Test database URL | ||
TEST_DATABASE_URL=postgresql:///opev_test | ||
|
||
# Integrate socket.io | ||
INTEGRATE_SOCKETIO=false | ||
|
||
# App configuration | ||
APP_CONFIG=config.DevelopmentConfig | ||
|
||
# Flask app instance | ||
FLASK_APP=app.instance | ||
|
||
SECRET_KEY=c0d1ed3e21627542e448dc11657f9118466532a381cb63daacb2046bc301c199 |
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,113 @@ | ||
# Docs for the Azure Web Apps Deploy action: https://github.com/Azure/webapps-deploy | ||
# More GitHub Actions for Azure: https://github.com/Azure/actions | ||
# More info on Python, GitHub Actions, and Azure App Service: https://aka.ms/python-webapps-actions | ||
|
||
name: Build and deploy Python app to Azure Web App - open-event-server | ||
|
||
on: | ||
push: | ||
branches: | ||
- development | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
ref: development | ||
|
||
- name: Set up Python version | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.8' | ||
|
||
- name: Checkout master branch for pyproject.toml | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: master # Checkout the 'master' branch to get the pyproject.toml | ||
path: master-branch | ||
|
||
- name: Copy pyproject.toml from master branch to development branch | ||
run: | | ||
cp master-branch/pyproject.toml . # Copy the pyproject.toml file | ||
cp -r master-branch/scripts . | ||
cp -r master-branch/utils . | ||
cp -r master-branch/static . | ||
cp master-branch/package.json . | ||
cp master-branch/poetry.lock . | ||
cp master-branch/populate_db.py . | ||
cp master-branch/session_slides_type_to_json.py . | ||
cp master-branch/setup.cfg . | ||
cp master-branch/yarn.lock . | ||
|
||
- name: Create and start virtual environment | ||
run: | | ||
python -m venv venv | ||
source venv/bin/activate | ||
|
||
- name: Install dependencies using Poetry | ||
run: | | ||
curl -sSL https://install.python-poetry.org | python3 - | ||
source ~/.profile # Ensure Poetry is in PATH | ||
poetry install # Install dependencies based on pyproject.toml | ||
sudo apt-get update | ||
sudo apt-get install libmagic-dev | ||
sudo apt-get update | ||
sudo apt-get install libpq-dev | ||
sudo apt-get install libcairo2 libcairo2-dev | ||
sudo apt-get update | ||
sudo apt-get install libpango-1.0-0 libpango1.0-dev | ||
sudo apt-get update | ||
|
||
|
||
|
||
|
||
# Optional: Add step to run tests here (PyTest, Django test suites, etc.) | ||
|
||
- name: Zip artifact for deployment | ||
run: zip release.zip ./* -r | ||
|
||
- name: Upload artifact for deployment jobs | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: python-app | ||
path: | | ||
release.zip | ||
!venv/ | ||
|
||
deploy: | ||
runs-on: ubuntu-latest | ||
needs: build | ||
environment: | ||
name: 'Production' | ||
url: ${{ steps.deploy-to-webapp.outputs.webapp-url }} | ||
permissions: | ||
id-token: write #This is required for requesting the JWT | ||
|
||
steps: | ||
- name: Download artifact from build job | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: python-app | ||
|
||
- name: Unzip artifact for deployment | ||
run: unzip release.zip | ||
|
||
|
||
- name: Login to Azure | ||
uses: azure/login@v2 | ||
with: | ||
client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_25459C518E94458E9FFFC1EEB51BE4C9 }} | ||
tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_30C288E7351C44ADADF49E2BF7F2C108 }} | ||
subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_482C86EA4AE84C4B93BBCEAE71C65AB0 }} | ||
|
||
- name: 'Deploy to Azure Web App' | ||
uses: azure/webapps-deploy@v3 | ||
id: deploy-to-webapp | ||
with: | ||
app-name: 'open-event-server' | ||
slot-name: 'Production' | ||
|
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,39 @@ | ||
name: PR Tests and Build | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- development # Uses development branch | ||
|
||
jobs: | ||
test-and-build: | ||
name: Run Tests and Build | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
# Checkout the code | ||
- name: Checkout Code | ||
uses: actions/checkout@v4 | ||
|
||
# Set up Python | ||
- name: Set up Python 3.8 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: 3.8 # Use version 3.8 | ||
|
||
# Install dependencies | ||
- name: Install Dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install poetry | ||
poetry install | ||
|
||
# Run tests | ||
- name: Run Tests | ||
run: | | ||
poetry run pytest tests | ||
|
||
# Build the project | ||
- name: Build Project | ||
run: | | ||
poetry build |
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,9 @@ | ||
Workflow: | ||
1.Wait for PR request | ||
2.Pull the development branch | ||
3.Run tests and Build | ||
a.Checkout code | ||
b.Setup Python | ||
c.Install dependencies | ||
d.Run tests | ||
e.Build project |
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
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
suggestion (documentation): Consider using markdown link format for the WSL setup instructions.
For consistency with markdown formatting, you might want to use the following format: WSL setup instructions