Skip to content

fixed setup

fixed setup #225

Workflow file for this run

name: Nanonet tests
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.8]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install libopenmpi-dev
python -m pip install --upgrade pip
pip install python-coveralls
pip install coverage==4.5.4
pip install -r requirements.txt
- name: Extract tag name
id: tag
run: echo "tag=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT
- name: Update version in setup.py
run: >-
sed -i "s/{{VERSION_PLACEHOLDER}}/${{ steps.vars.outputs.tag }}/g" setup.py; cat setup.py
- name: Install Nanonet
run: |
pip install .
- name: Test with nose
run: |
nosetests
- name: Run tests and collect coverage
run: |
pip install pytest pytest-cov
pytest --cov --cov-report=xml
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}