Skip to content

Bump the all-dependencies group with 3 updates #818

Bump the all-dependencies group with 3 updates

Bump the all-dependencies group with 3 updates #818

Workflow file for this run

on:
push:
branches:
- main
pull_request:
name: Unit Testing
jobs:
chore:
name: Unit Tests
runs-on: ubuntu-latest
services:
postgres:
image: postgres
env:
POSTGRES_PASSWORD: postgres
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
strategy:
matrix:
toxenv: [py38, kinto-main, upload-download-scripts]
include:
- toxenv: py38
python-version: "3.8"
- toxenv: upload-download-scripts
python-version: "3.8"
- toxenv: kinto-main
python-version: "3.8"
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install virtualenv
run: |
pip install virtualenv
virtualenv --python=python3 .venv
- name: Print environment
run: |
source .venv/bin/activate
python --version
pip --version
- name: Create database
env:
PGPASSWORD: postgres
run: |
psql -c "CREATE DATABASE testdb ENCODING 'UTF8' TEMPLATE template0;" -U postgres -h localhost
- name: Install dependencies
run: |
make install
- name: Run moto
run: |
make run-moto &
- name: Run Kinto
run: |
make run-kinto &
- name: Tox
run: |
source .venv/bin/activate
tox -e ${{ matrix.toxenv }}
- name: Coveralls
uses: AndreMiras/coveralls-python-action@develop
if: matrix.toxenv == 'py38'
with:
github-token: ${{ secrets.GITHUB_TOKEN }}