chore(deps): Deprecate pkg_resources. #91
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: 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] |