Merge pull request #40 from softnanolab/dev-v0.7.0 #66
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Builds using pip and tests using pytest | |
name: Coverage | |
on: | |
push: | |
branches: [main, coverage*, test*] | |
pull_request: | |
branches: [main] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.8 | |
- name: Update Dependencies | |
run: pip install --upgrade pip setuptools wheel | |
- name: Install | |
run: pip install . | |
- name: Test | |
run: | | |
pip install pytest pytest-cov | |
pytest --cov-report=xml --cov=softnanotools | |
curl -Os https://uploader.codecov.io/latest/linux/codecov | |
chmod +x codecov | |
./codecov -t ${CODECOV_TOKEN} |