Skip to content

Merge pull request #121 from root-11/add_slow_row_warning #264

Merge pull request #121 from root-11/add_slow_row_warning

Merge pull request #121 from root-11/add_slow_row_warning #264

Workflow file for this run

name: CodeCov
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
run:
runs-on: ubuntu-latest
env:
OS: ubuntu-latest
PYTHON: '3.10'
steps:
- uses: actions/checkout@v3
- uses: jiro4989/setup-nim-action@v1
with:
nim-version: "2.0.0"
- name: Nimble Install dependencies
run: |
nimble -y refresh
nimble -y install nimpy argparse
- name: Set Environment Variables
uses: allenevans/[email protected]
with:
NIMLITE_DIR: 'tablite/_nimlite'
NIM_PACKAGE_NAME: 'nimlite'
TABLITE_PACKAGE_NAME: 'tablite'
NIMC_FLAGS: '--app:lib --threads:on -d:release -d:danger'
- name: Setup Python
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: 'install dependencies'
run: |
python -m pip install --upgrade pip
python -m pip install pytest
python -m pip install pytest-cov
python -m pip install -r requirements.txt
- name: Compile Debug & import (Unix)
run: |
# compile the nimlite
nim c ${{ env.NIMC_FLAGS }} --out:${{ env.NIMLITE_DIR }}/${{ env.NIM_PACKAGE_NAME }}.so ${{ env.NIMLITE_DIR }}/${{ env.NIM_PACKAGE_NAME }}.nim
# check if compiled successfully
python -c "print(__import__('${{ env.TABLITE_PACKAGE_NAME }}.${{ env.NIM_PACKAGE_NAME }}').__file__)"
- name: Generate Report
run: |
pytest --cov=tablite tests/ --cov-report=xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage.xml
verbose: true
fail_ci_if_error: true # optional (default = false)