Skip to content

try uploading via CLI #8

try uploading via CLI

try uploading via CLI #8

Workflow file for this run

name: Tests
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
jobs:
tests:
strategy:
fail-fast: false
matrix:
python-version: [ "3.10", "3.11" ]
os: [ ubuntu-latest, macos-latest, windows-latest, ubuntu-20.04 ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }} on ${{ matrix.os }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install project
run: python -m pip install .[testsuite]
- name: Run unit tests on Python ${{ matrix.python-version }} on ${{ matrix.os }}
run: pytest --cov nuclei_vis_napari
- name: Upload coverage reports to Codecov
run: |
curl -Os https://cli.codecov.io/latest/linux/codecov
chmod +x codecov
./codecov --verbose upload-process --fail-on-error -t ${{ secrets.CODECOV_TOKEN }} -n 'service'-${{ github.run_id }} -F service -f coverage-service.xml
if: ${{ matrix.os == 'ubuntu-latest' }}