Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 10 additions & 42 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -170,58 +170,26 @@ jobs:
matrix:
msystem:
- MSYS
- MINGW32
- MINGW64
- UCRT64
steps:
- name: Install msys2 (MINGW64)
if: matrix.msystem == 'MINGW64'
- name: Install msys2
uses: msys2/setup-msys2@v2
with:
msystem: MINGW64
install: >-
mingw-w64-x86_64-toolchain
mingw-w64-x86_64-gnupg
mingw-w64-x86_64-python
mingw-w64-x86_64-python-pip
update: true
- name: Install msys2 (MSYS)
if: matrix.msystem == 'MSYS'
uses: msys2/setup-msys2@v2
with:
msystem: MSYS
install: >-
msys2-devel
msystem: ${{ matrix.msystem }}
pacboy: >-
gnupg
python
python-pip
python-devel
python:p
python-pip:p
update: true
- uses: actions/checkout@v4
- name: Build venv
- name: Run tests
run: |
python -m venv .venv
- name: Install package
run: |
. .venv/bin/activate
pip install .
- name: Print libpython
run: |
. .venv/bin/activate
echo 'NAMES'
find_libpython -v --candidate-names
echo 'PATHS'
find_libpython -v --candidate-paths
echo 'LOCATION'
find_libpython -v
- name: Install Testing Requirements
run: |
. .venv/bin/activate
pip install pytest pytest-cov coverage
- name: Run Tests
run: |
. .venv/bin/activate
pytest --cov --cov-branch tests/
pytest --cov --cov-branch --cov-append --doctest-modules $(python -c 'import find_libpython; print(find_libpython.__file__)')
coverage xml -o coverage.xml
pip install nox
nox -e tests
- name: Upload to codecov
uses: codecov/codecov-action@v4
with:
Expand Down
2 changes: 1 addition & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
@nox.session
def tests(session):
# install current module and runtime dependencies
session.install(".")
session.install("-e", ".")

# install testing dependencies
session.install(*test_reqs)
Expand Down
Loading