Skip to content
This repository has been archived by the owner on Sep 13, 2023. It is now read-only.

[pre-commit.ci] pre-commit autoupdate #1091

[pre-commit.ci] pre-commit autoupdate

[pre-commit.ci] pre-commit autoupdate #1091

Workflow file for this run

name: test
on:
push:
branches:
# - "**"
- "blah"
tags-ignore:
- "*.*.*"
pull_request:
jobs:
test:
name: python ${{ matrix.python-version }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest] #, macos-latest]
python-version: [3.7, 3.8, 3.9]
fail-fast: true
services:
redis:
image: redis
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 6379:6379
postgres:
image: postgres
env:
POSTGRES_PASSWORD: 12345
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
steps:
- name: checkout
uses: actions/checkout@v3
- name: setup python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: install deps
run: |
cd solr && docker run -d -v "$PWD:/var/solr/mine" -p 8983:8983 --name solr_dev solr:8; docker exec solr_dev bash -c "source /var/solr/mine/setup_cores.sh;"
python -m pip install tox poetry codecov
sudo apt-get install libxml2-dev libxmlsec1-dev libxmlsec1-openssl
- name: test
run: tox -e clean,test,cov
env:
POSTGRES_HOST: localhost
POSTGRES_PORT: 5432
PGPASSWORD: 12345
REDIS_HOST: localhost
REDIS_PORT: 6379
- name: upload cov
uses: codecov/codecov-action@v3
with:
files: ./coverage.xml
fail_ci_if_error: true
verbose: true