chore(deps): bump pillow from 9.3.0 to 10.3.0 in /api #156
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
name: docker | |
on: | |
push: | |
branches: main | |
pull_request: | |
branches: main | |
jobs: | |
package: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Build docker image | |
run: docker build . -t pyrovision:python3.8.1-slim | |
- name: Run docker container | |
run: docker run pyrovision:python3.8.1-slim python -c 'import pyrovision' | |
api: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
python: [3.8] | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python }} | |
architecture: x64 | |
- name: Install poetry | |
uses: abatilo/[email protected] | |
with: | |
poetry-version: 1.1.13 | |
- name: Lock the requirements | |
run: | | |
cd api | |
poetry lock | |
poetry export -f requirements.txt --without-hashes --output requirements.txt | |
poetry export -f requirements.txt --without-hashes --dev --output requirements-dev.txt | |
- name: Build & run docker | |
run: cd api && docker-compose up -d --build | |
- name: Docker sanity check | |
run: sleep 10 && nc -vz localhost 8080 | |
- name: Ping server | |
run: curl http://localhost:8080/docs | |
- name: Run docker test | |
run: | | |
docker cp api/requirements-dev.txt api_backend_1:/app/requirements-dev.txt | |
docker-compose -f api/docker-compose.yml exec -T backend pip install -r requirements-dev.txt | |
docker cp api/tests api_backend_1:/app/tests | |
docker-compose -f api/docker-compose.yml exec -T backend pytest tests/ |