Skip to content

fix: stringify excrepr before sending it to elasticsearch #44

fix: stringify excrepr before sending it to elasticsearch

fix: stringify excrepr before sending it to elasticsearch #44

Workflow file for this run

on:
push:
branches: [master]
tags: ['v*']
pull_request:
jobs:
test:
runs-on: ${{ matrix.platform }}
strategy:
max-parallel: 8
matrix:
# https://help.github.com/articles/virtual-environments-for-github-actions
platform:
- ubuntu-latest # ubuntu-18.04
# - macos-latest # macOS-10.14 casing trouble for requests-mock
# - windows-latest # windows-2019 causing trouble for the test_xdist
python-version: [2.7, 3.6, 3.7, 3.8, 3.9, '3.10']
steps:
- uses: actions/checkout@v1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade setuptools pip wheel
# Use the latest published version for myself :)
python -m pip install tox-gh-actions
- name: Test with tox
run: tox
- name: Upload coverage.xml to codecov
if: ${{ matrix.python-version == '3.8' }}
uses: codecov/codecov-action@v1
publish:
needs: [test]
runs-on: ubuntu-latest
# upload to PyPI on every tag starting with 'v'
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v')
# alternatively, to publish when a GitHub Release is created, use the following rule:
# if: github.event_name == 'release' && github.event.action == 'published'
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
name: Install Python
with:
python-version: '3.8'
- name: Build sdist
run: python setup.py sdist
- name: Build bdist_wheel
run: |
pip install wheel
python setup.py bdist_wheel
- name: Publish package
uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}