Skip to content

Merge pull request #19 from kiwicom/mk/deprecate-pkg-resources #94

Merge pull request #19 from kiwicom/mk/deprecate-pkg-resources

Merge pull request #19 from kiwicom/mk/deprecate-pkg-resources #94

Workflow file for this run

name: Tests
on: push
jobs:
tests:
name: pytest
runs-on: ubuntu-latest
services:
postgres:
image: postgres:alpine
env:
POSTGRES_PASSWORD: postgres
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- uses: actions/checkout@master
- name: Setting up tox environment
uses: docker://kiwicom/tox
env:
TOXENV: ${{ matrix.toxenv }}
XDG_CACHE_HOME: /tmp/cache
with:
args: >
sh -c
"
mkdir -p reports ;
export DATABASE_URI=postgres://postgres:postgres@postgres:5432/postgres ;
tox -e $TOXENV -- --junitxml=reports/$TOXENV/test_report.xml --cov kw --cov-report xml --cov-config .coveragerc --cov-append --cov-report xml:reports/coverage.xml
"
- name: Cache multiple paths
uses: actions/cache@v2
with:
path: .tox
key: ${{ runner.os }}-${{ hashFiles('*requirements.txt') }}
strategy:
matrix:
toxenv: [py37, py38, py39, py310, py310-simplejson]