Skip to content

redis interface upgrades #732

redis interface upgrades

redis interface upgrades #732

Workflow file for this run

name: Unittests
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
python3:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: pull docker image
run: docker pull nanome/plugin-env:latest
- run: docker run --rm -w /app -v $(pwd):/app nanome/plugin-env:latest /bin/bash -c "pip install coverage && pip install -e .['schemas'] && coverage run --source nanome --omit=nanome/util/py2_enum.py tests.py && coverage report | grep TOTAL"
python2:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Python 2
run: |
sudo apt-get update
sudo apt-get install python2
curl https://bootstrap.pypa.io/pip/2.7/get-pip.py --output get-pip.py
python2 get-pip.py
- name: Install dependencies
run: |
python2 -m pip install --upgrade pip
python2 -m pip install -e .
python2 -m pip install mock
- name: Run tests.py
run: python2 tests.py