Update tox.ini to pass env variables

This commit is contained in:
Roman Mogylatov 2021-01-25 18:42:11 -05:00
parent 9cb37cf004
commit 500be25220
2 changed files with 8 additions and 9 deletions

View File

@ -33,14 +33,13 @@ jobs:
- uses: actions/setup-python@v2 - uses: actions/setup-python@v2
with: with:
python-version: 3.9 python-version: 3.9
- run: | - run: pip install tox
pip install tox - run: pip install cython
pip install cython - run: make cythonize
make cythonize env:
tox DEPENDENCY_INJECTOR_DEBUG_MODE: 1
- run: tox
env: env:
TOXENV: coveralls TOXENV: coveralls
DEPENDENCY_INJECTOR_DEBUG_MODE: 1
COVERALLS_GIT_BRANCH: ${{ steps.branch-name.outputs.branch }} COVERALLS_GIT_BRANCH: ${{ steps.branch-name.outputs.branch }}
COVERALLS_REPO_TOKEN: Z5o1TZn8rMX4J3Ak4CTBiilJGkFbtzKxj COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}

View File

@ -17,7 +17,7 @@ commands=
unit2 discover -s tests/unit -p test_*_py3*.py unit2 discover -s tests/unit -p test_*_py3*.py
[testenv:coveralls] [testenv:coveralls]
passenv=TRAVIS TRAVIS_JOB_ID TRAVIS_BRANCH DEPENDENCY_INJECTOR_DEBUG_MODE passenv=COVERALLS_GIT_BRANCH COVERALLS_REPO_TOKEN DEPENDENCY_INJECTOR_DEBUG_MODE
basepython=python3.9 basepython=python3.9
usedevelop=True usedevelop=True
deps= deps=