Skip to content

Commit

Permalink
tests: improve coverage tests for linux (#2241)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelotduarte committed Feb 3, 2024
1 parent 4826bfa commit 6a5bfbe
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ jobs:
cache: 'pip'
python-version: ${{ matrix.python-version }}

- name: Install dependencies (Linux)
if: runner.os == 'Linux'
run: sudo apt-get install -y alien fakeroot rpm

- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand Down Expand Up @@ -98,7 +102,8 @@ jobs:
PY_VERSION_NODOT=$(echo ${{ matrix.python-version }}|sed 's/\.//')
cibuildwheel --only cp${PY_VERSION_NODOT}-manylinux_x86_64
unzip -q -o wheelhouse/cx_Freeze-*.whl "cx_Freeze/bases/*" -x "*.py"
python -m pytest -nauto --cov="cx_Freeze" --cov-report=xml
python -m pytest -nauto --cov="cx_Freeze" --cov-report=xml\
-o pythonpath=cx_Freeze/bases/lib-dynload
- name: Generate coverage report (Windows)
if: runner.os == 'Windows'
Expand Down
4 changes: 1 addition & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,7 @@ doc: html

.PHONY: install_test
install_test:
if ! which pytest || ! which cxfreeze; then\
pip install -e .[test];\
fi
if ! which pytest; then pip install -e .[test]; else pip install -e .; fi

.PHONY: test
test: install_test
Expand Down

0 comments on commit 6a5bfbe

Please sign in to comment.