File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# Image for a Python 3 development environment
2- FROM quay.io/rofrano/nyu-devops-base:su25
2+ FROM quay.io/rofrano/nyu-devops-base:sp26
33
44ARG USERNAME=vscode
55
Original file line number Diff line number Diff line change 7777 },
7878 // "forwardPorts": [8000],
7979 "features" : {
80- "ghcr.io/devcontainers/features/docker-in-docker:2" : {}
80+ "ghcr.io/devcontainers/features/docker-in-docker:2" : {
81+ "moby" : false
82+ }
8183 },
8284 "postCreateCommand" : " bash /app/.devcontainer/scripts/setup-lab.sh"
8385}
Original file line number Diff line number Diff line change 1414jobs :
1515 build :
1616 runs-on : ubuntu-latest
17- container : python:3.11 -slim
17+ container : python:3.12 -slim
1818
1919 # Required services
2020 services :
4848 env :
4949 DATABASE_URI : " redis://redis:6379/0"
5050
51- - name : Upload code coverage
52- uses : codecov/codecov-action@v3.1.4
51+ - name : Install packages for Codecov to work
52+ run : apt update && apt install -y git curl gpg
53+
54+ - name : Upload coverage reports to Codecov
55+ uses : codecov/codecov-action@v5
56+ with :
57+ token : ${{ secrets.CODECOV_TOKEN }}
58+ slug : nyu-devops/lab-docker
Original file line number Diff line number Diff line change 1- FROM python:3.11 -slim
1+ FROM python:3.12 -slim
22
33# Create working folder and install dependencies
44WORKDIR /app
Original file line number Diff line number Diff line change @@ -4,24 +4,29 @@ verify_ssl = true
44name = " pypi"
55
66[packages ]
7- flask = " ==3.1.1 "
8- redis = " ==5.2.1 "
7+ flask = " ==3.1.2 "
8+ redis = " ==7.1.0 "
99flask-redis = " ==0.4.0"
1010retry2 = " ==0.9.5"
11- python-dotenv = " ~=1.1.0 "
12- gunicorn = " ~=23 .0.0"
11+ python-dotenv = " ~=1.2.1 "
12+ gunicorn = " ~=25 .0.0"
1313
1414[dev-packages ]
15- black = " ~=25.1.0"
16- coverage = " ~=7.8.2"
17- flake8 = " ~=7.2.0"
18- pylint = " ~=3.3.7"
19- pytest = " ~=8.3.5"
15+ # Code Quality
16+ pylint = " ~=4.0.4"
17+ flake8 = " ~=7.3.0"
18+ black = " ~=26.1.0"
19+
20+ # Test-Driven Development
21+ pytest = " ~=9.0.2"
2022pytest-pspec = " ~=0.0.4"
21- pytest-cov = " ~=6.1.1 "
23+ pytest-cov = " ~=7.0.0 "
2224factory-boy = " ~=3.3.3"
25+ coverage = " ~=7.13.2"
26+
27+ # Utility
2328honcho = " ~=2.0.0"
2429httpie = " ~=3.2.4"
2530
2631[requires ]
27- python_version = " 3.11 "
32+ python_version = " 3.12 "
You can’t perform that action at this time.
0 commit comments