Skip to content

Commit

Permalink
build: testing codecov file
Browse files Browse the repository at this point in the history
  • Loading branch information
FedericoTartarini committed Dec 14, 2023
1 parent a8e5b59 commit e021491
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 23 deletions.
46 changes: 23 additions & 23 deletions .github/workflows/build-test-publish-testPyPI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,26 +26,26 @@ jobs:
run: |
tox -e py310
deploy:

needs: build

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up Python 🐍
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
- name: Publish pythermalcomfort 📦 to Test PyPI
env:
TWINE_USERNAME: "__token__"
TWINE_PASSWORD: ${{ secrets.TEST_PYPI_API_TOKEN }}
run: |
python setup.py sdist bdist_wheel
python -m twine upload --skip-existing --repository-url https://test.pypi.org/legacy/ dist/*.gz dist/*.whl
# deploy:
#
# needs: build
#
# runs-on: ubuntu-latest
#
# steps:
# - uses: actions/checkout@v3
# - name: Set up Python 🐍
# uses: actions/setup-python@v4
# with:
# python-version: '3.10'
# - name: Install dependencies
# run: |
# python -m pip install --upgrade pip
# pip install setuptools wheel twine
# - name: Publish pythermalcomfort 📦 to Test PyPI
# env:
# TWINE_USERNAME: "__token__"
# TWINE_PASSWORD: ${{ secrets.TEST_PYPI_API_TOKEN }}
# run: |
# python setup.py sdist bdist_wheel
# python -m twine upload --skip-existing --repository-url https://test.pypi.org/legacy/ dist/*.gz dist/*.whl
19 changes: 19 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
coverage:
status:
project:
default:
# basic
target: auto
threshold: 0%
base: auto
flags:
- unit
paths:
- "pythermalcomfort"
- "tests"
# advanced settings
branches:
- development
if_ci_failed: error #success, failure, error, ignore
informational: false
only_pulls: false

0 comments on commit e021491

Please sign in to comment.