Skip to content

Commit

Permalink
[#414] Updated .github/workflows/pytest.yml to disable C-Extension …
Browse files Browse the repository at this point in the history
…generation under Windows as this is not needed anymore.
  • Loading branch information
eoyilmaz committed Oct 24, 2024
1 parent f00706f commit 561e825
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,7 @@ jobs:
- name: Install Python dependencies
run: |
pip install -r requirements-tests.txt
pip install -r requirements-dev.txt
pip install -r requirements-tests.txt -r requirements-dev.txt
- name: Build DisplayCAL
run: |
Expand Down Expand Up @@ -167,19 +166,19 @@ jobs:
run: |
pip install -r requirements-tests.txt -r requirements-dev.txt
- name: Compile C-Extensions
run: |
python -m build
ls -l dist/
$wheel_file = Get-ChildItem -Path dist -Filter DisplayCAL-*.whl
pip install $wheel_file.FullName
$PYPATH = Get-Command python | Select-Object -ExpandProperty Source
$PYDIR = Split-Path $PYPATH
Copy-Item -Path "$PYDIR\Lib\site-packages\DisplayCAL\lib64\python${{ env.py_version }}\RealDisplaySizeMM.*.pyd" -Destination "./DisplayCAL/lib64/python${{ env.py_version }}/"
# - name: Compile C-Extensions
# run: |
# python -m build
# ls -l dist/
# $wheel_file = Get-ChildItem -Path dist -Filter DisplayCAL-*.whl
# pip install $wheel_file.FullName
# $PYPATH = Get-Command python | Select-Object -ExpandProperty Source
# $PYDIR = Split-Path $PYPATH
# Copy-Item -Path "$PYDIR\Lib\site-packages\DisplayCAL\lib64\python${{ env.py_version }}\RealDisplaySizeMM.*.pyd" -Destination "./DisplayCAL/lib64/python${{ env.py_version }}/"

- name: Test with pytest
run: |
python -m pytest --verbose --cov=. --cov-report html
python -m pytest --verbose -n auto -W ignore --color=yes --cov=. --cov-report html
- name: Archive code coverage results
uses: actions/upload-artifact@v4
Expand Down

0 comments on commit 561e825

Please sign in to comment.