2222 working-directory : ./mapswipe_workers
2323 run : |
2424 python -m pip install --upgrade pip
25- pip install flake8 black==22.3.0 isort
25+ pip install flake8 black==24.4.2 isort
2626
2727 - name : Code style
2828 working-directory : ./mapswipe_workers
@@ -47,15 +47,15 @@ jobs:
4747 run : |
4848 # Create a mock file for wal-g setup
4949 touch postgres/serviceAccountKey.json
50- docker- compose up --build --detach postgres
51- for i in {1..5}; do docker- compose exec -T postgres pg_isready && s=0 && break || s=$? && sleep 5; done; (docker- compose logs postgres && exit $s)
50+ docker compose up --build --detach postgres
51+ for i in {1..5}; do docker compose exec -T postgres pg_isready && s=0 && break || s=$? && sleep 5; done; (docker compose logs postgres && exit $s)
5252
5353 - name : Deploy Firebase Rules and Functions
5454 env :
5555 FIREBASE_TOKEN : ${{ secrets.FIREBASE_TOKEN }}
5656 FIREBASE_DB : ${{ secrets.FIREBASE_DB }}
5757 run : |
58- docker- compose run --rm firebase_deploy sh -c "firebase use $FIREBASE_DB && firebase deploy --token $FIREBASE_TOKEN --only database"
58+ docker compose run --rm firebase_deploy sh -c "firebase use $FIREBASE_DB && firebase deploy --token $FIREBASE_TOKEN --only database"
5959
6060 - name : Decrypt Service Account Key File
6161 working-directory : ./
@@ -78,16 +78,16 @@ jobs:
7878 OSMCHA_API_KEY : ${{ secrets.OSMCHA_API_KEY }}
7979 DJANGO_SECRET_KEY : test-django-secret-key
8080 run : |
81- docker- compose run --rm mapswipe_workers_creation python -m unittest discover --verbose --start-directory tests/unittests/
82- docker- compose run --rm mapswipe_workers_creation bash -c 'pip install pytest && pytest -ra -v --durations=10 tests/integration/'
83- docker- compose run --rm django pytest -ra -v --durations=10
81+ docker compose run --rm mapswipe_workers_creation python -m unittest discover --verbose --start-directory tests/unittests/
82+ docker compose run --rm mapswipe_workers_creation bash -c 'pip install pytest && pytest -ra -v --durations=10 tests/integration/'
83+ docker compose run --rm django pytest -ra -v --durations=10
8484
8585 - name : Django Graphql Schema Check
8686 env :
8787 SOURCE_SCHEMA : ' ./django/schema.graphql'
8888 LATEST_SCHEMA : ' ./django-data/schema-latest.graphql'
8989 run : |
90- docker- compose run --rm django bash -c 'wait-for-it postgres:5432 && ./manage.py graphql_schema --out /django-data/schema-latest.graphql' &&
90+ docker compose run --rm django bash -c 'wait-for-it postgres:5432 && ./manage.py graphql_schema --out /django-data/schema-latest.graphql' &&
9191 cmp --silent $SOURCE_SCHEMA $LATEST_SCHEMA || {
9292 echo 'The schema.graphql is not up to date with the latest changes. Please update and push latest';
9393 diff $SOURCE_SCHEMA $LATEST_SCHEMA;
@@ -101,7 +101,7 @@ jobs:
101101 POSTGRES_DB : postgres
102102 DJANGO_SECRET_KEY : test-django-secret-key
103103 run : |
104- docker- compose run --rm django bash -c 'wait-for-it postgres:5432 && ./manage.py makemigrations --check --dry-run' || {
104+ docker compose run --rm django bash -c 'wait-for-it postgres:5432 && ./manage.py makemigrations --check --dry-run' || {
105105 echo 'There are some changes to be reflected in the migration. Make sure to run makemigrations';
106106 exit 1;
107107 }
0 commit comments