Skip to content

Allowing to specify different host on local runner. Collecting extra server side metrics on local run. #561

Allowing to specify different host on local runner. Collecting extra server side metrics on local run.

Allowing to specify different host on local runner. Collecting extra server side metrics on local run. #561

Workflow file for this run

name: Run Tests using tox
on:
pull_request:
push:
branches:
- master
jobs:
pytest:
strategy:
matrix:
python-version: [ '3.9', '3.10' ]
fail-fast: false
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
USING_COVERAGE: "3.10"
USING_COVERAGE_OS: "ubuntu-latest"
runs-on: "ubuntu-latest"
name: os ${{ matrix.os }} python ${{ matrix.python-version }} Linting, testing, and compliance
steps:
- uses: actions/checkout@master
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
- name: Install Dev requirements
run: |
pip install -U setuptools wheel
pip install -r dev_requirements.txt
- name: Set Submodules
run: |
git submodule update --init --recursive
- name: Install Redis
run: |
sudo add-apt-repository ppa:redislabs/redis
sudo apt-get update
sudo apt-get install redis -y
sudo systemctl stop redis-server
- name: Run tox
run: |
tox
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2
if: contains(env.USING_COVERAGE, matrix.python-version)
with:
token: ${{secrets.CODECOV_TOKEN}}
fail_ci_if_error: true