Skip to content

Updated toml to make sure the cpp files are included in the package #2

Updated toml to make sure the cpp files are included in the package

Updated toml to make sure the cpp files are included in the package #2

Workflow file for this run

name: Cytotransform test & build
on: push
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
with:
fetch-depth: 1
- name: Set up Python 3.11
uses: actions/setup-python@v1
with:
python-version: 3.11
- name: Install Poetry
uses: snok/install-poetry@v1.3.1
- name: Cache Poetry virtualenv
uses: actions/cache@v1
id: cache
with:
path: ~/.virtualenvs
key: poetry-$
restore-keys: |
poetry-$
- name: Install Dependencies using Poetry
run: poetry install
if: steps.cache.outputs.cache-hit != 'true'
- name: Run pytest
run: poetry run python -m pytest --import-mode=append tests/ --cov=tests/
- name: Run Coverage
run: poetry run python -m coverage report -m;
- name: Generate XML Report
run: poetry run python -m coverage xml
- name: Codecov
uses: codecov/codecov-action@v3.1.0
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
- name: Publish
env:
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
run: poetry config pypi-token.pypi $PYPI_TOKEN && poetry publish --build