Skip to content

Integration with AWS S3 API for public media files (#89) #103

Integration with AWS S3 API for public media files (#89)

Integration with AWS S3 API for public media files (#89) #103

Workflow file for this run

name: Tests
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.8', '3.9']
steps:
- uses: actions/checkout@v2
- name: Use Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Start MongoDB
uses: supercharge/mongodb-github-action@1.3.0
with:
mongodb-version: '4.4'
- name: Build
run: |
pip install -r requirements.txt
pip install -r dev-requirements.txt
- name: Test
working-directory: ./src
run: coverage run --branch --source=wstore manage.py test --noinput --nologcapture -v 2
- name: Coveralls Parallel
uses: AndreMiras/coveralls-python-action@develop
with:
github-token: ${{ secrets.github_token }}
base-path: src
parallel: false
debug: true
build-docker:
runs-on: ubuntu-latest
needs: test
steps:
- uses: actions/checkout@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push Docker
uses: docker/build-push-action@v3
with:
context: .
file: ./docker/Dockerfile
tags: |
fiware/biz-ecosystem-charging-backend:master
push: ${{ github.ref == 'refs/heads/master' }}
- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}