File tree Expand file tree Collapse file tree 6 files changed +16
-10
lines changed Expand file tree Collapse file tree 6 files changed +16
-10
lines changed Original file line number Diff line number Diff line change @@ -45,14 +45,19 @@ jobs:
4545 pip install .
4646 pip install -r requirements_dev.txt
4747 - name : Deploy app
48- run : docker- compose up -d --build
48+ run : docker compose up -d --build
4949 - name : Wait for app startup
50- run : sleep 20
50+ run : |
51+ for i in $(seq 1 24); do
52+ sleep 5; curl localhost:8080 -so /dev/null && break;
53+ docker compose ps;
54+ echo "Retrying ($i) in 5 seconds...";
55+ done
5156 - name : Run integration tests
5257 shell : bash
5358 run : pytest tests/test_integration
5459 - name : Tear down app
55- run : docker- compose down
60+ run : docker compose down
5661 publish :
5762 name : Build and publish app image
5863 runs-on : ubuntu-latest
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ class TesCreateTaskResponse(CustomBaseModel):
3838
3939class TesExecutor (CustomBaseModel ):
4040 image : str = Field (
41- default = [ "" ] ,
41+ default = "" ,
4242 description = (
4343 "Name of the container image. The string will be passed as "
4444 " the image\n argument to the containerization run command. "
@@ -626,7 +626,7 @@ class TesTask(CustomBaseModel):
626626 )
627627 resources : Optional [TesResources ] = None
628628 executors : list [TesExecutor ] = Field (
629- default = [TesExecutor ],
629+ default = [TesExecutor () ],
630630 description = (
631631 "An array of executors to be run. Each of the executors "
632632 " will run one\n at a time sequentially. Each executor is a"
Original file line number Diff line number Diff line change 1717forwarded_allow_ips = "*" # pylint: disable=invalid-name
1818
1919# Set Gunicorn bind address
20- bind = f"{ app_config .server .host } :{ app_config .server .port } "
20+ bind = f"{ app_config .server .host } :{ app_config .server .port } " # pylint: disable=C0103 # noqa: E501
2121
2222# Source environment variables for Gunicorn workers
2323raw_env = [
Original file line number Diff line number Diff line change 2626 ignore_result = True ,
2727 track_started = True ,
2828)
29- def task__track_task_progress ( # pylint: disable=too-many-arguments
29+ def task__track_task_progress ( # pylint: disable=too-many-arguments,R0917
3030 self , # pylint: disable=unused-argument
3131 worker_id : str ,
3232 remote_host : str ,
Original file line number Diff line number Diff line change @@ -2,11 +2,12 @@ celery-types>=0.20.0
22connexion >= 2.11.2 ,< 3
33foca >= 0.12.1
44geopy >= 2.2.0
5- gunicorn >= 20.1.0 , < 21
5+ gunicorn >= 22
66ip2geotools >= 0.1.6
77py-tes >= 0.4.2
88pytest-ordering >= 0.6
99types-PyYAML >= 6.0.12
1010types-requests >= 2.28.5
1111types-simplejson >= 3.17.7
1212types-urllib3 >= 1.26.17
13+ pymongo == 4.8.0
Original file line number Diff line number Diff line change @@ -7,5 +7,5 @@ mypy>=0.990
77pylint>=2.15.5
88pytest>=7.2.0
99python-semantic-release>=7.32.2
10- mypy>=1.8.0
11- types-python-dateutil>=2.8.19.20240106
10+ mypy==1.14.1
11+ types-python-dateutil>=2.8.19.20240106
You can’t perform that action at this time.
0 commit comments