Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
GRAAL-Research
GitHub Repository: GRAAL-Research/deepparse
Path: blob/main/codecov_push.sh
865 views
1
#!/bin/sh
2
# To run using ZSH: zsh -i ./codecov_push.sh
3
# To run using bash: bash -i ./codecov_push.sh
4
5
# We do test on Python 3.11 (latest Python version)
6
7
# Create a new Python env for Deepparse tests and activate it
8
conda create --name deepparse_pytest_3_11 python=3.11 -y --force
9
conda activate deepparse_pytest_3_11
10
11
# Install dependencies
12
pip install -Ur tests/requirements.txt
13
pip install -Ur requirements.txt
14
15
# Run pytest from conda env
16
echo "*****Running test in Conda*****"
17
# --live-stream is to remove the Conda capture of the stream
18
conda run -n deepparse_pytest_3_11 --live-stream pytest --cov ./deepparse --cov-report html --cov-report xml --cov-config=.coveragerc
19
20
# Push the coverage file
21
./codecov -f coverage.xml -n unittest-integrationtest -t $CODECOVKEYDEEPPARSE
22
23
# close conda env
24
conda deactivate
25
26
conda env remove -n deepparse_pytest_3_11
27
28