Skip to content

Commit

Permalink
updated config files
Browse files Browse the repository at this point in the history
  • Loading branch information
Snickdx committed Nov 7, 2023
1 parent e9a56db commit f2501c8
Show file tree
Hide file tree
Showing 5 changed files with 53 additions and 10 deletions.
40 changes: 40 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/python
{
"name": "Python 3",
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
"image": "mcr.microsoft.com/devcontainers/python:1-3.9-bookworm",
"features": {
"ghcr.io/devcontainers/features/python:1": {}
},
"customizations": {
"vscode": {
"extensions": [
"github.vscode-github-actions",
"GitHub.copilot",
"GitHub.copilot-chat",
"alexcvzz.vscode-sqlite"
]
}
},
"forwardPorts": [8080],
"portsAttributes": {
"8080": {
"label": "server",
"protocol": "http"
}
}

// Features to add to the dev container. More info: https://containers.dev/features.
// "features": {},


// Use 'postCreateCommand' to run commands after the container is created.
// "postCreateCommand": "pip3 install --user -r requirements.txt",

// Configure tool-specific properties.
// "customizations": {},

// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "root"
}
2 changes: 1 addition & 1 deletion .github/workflows/dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.8.12'
python-version: '3.9.10'
cache: pip

- name: Install dependencies
Expand Down
16 changes: 8 additions & 8 deletions .gitpod.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
tasks:
- init: pyenv install -f & pip install -r requirements.txt
- init: pip install -r requirements.txt & pyenv install
command: flask init & flask run

ports:
Expand All @@ -9,10 +9,10 @@ ports:
image:
file: .gitpod.Dockerfile

github:
prebuilds:
master: true
branches: false
pullRequests: true
addCheck: true
addComment: true
# github:
# prebuilds:
# master: true
# branches: false
# pullRequests: true
# addCheck: true
# addComment: true
2 changes: 2 additions & 0 deletions App/tests/test_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,3 +75,5 @@ def test_update_user(self):
update_user(1, "ronnie")
user = get_user(1)
assert user.username == "ronnie"


3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@ psycopg2-binary==2.9.3
pytest==7.0.1
python-dotenv==0.21.1
Flask-JWT-Extended==4.4.4
Flask-Migrate==3.1.0
Flask-Migrate==3.1.0
Werkzeug==2.2.3

0 comments on commit f2501c8

Please sign in to comment.