redis interface upgrades #726
Workflow file for this run
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: 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 |