Change src file list for win32 vs others. #170
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tests | |
on: | |
push: | |
jobs: | |
checks: | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: | |
- 3.7 | |
- 3.8 | |
- 3.9 | |
- "3.10" | |
- 3.11 | |
- 3.12 | |
- pypy-3.7 | |
os: | |
- ubuntu-latest | |
- macos-12 | |
- macos-latest | |
- windows-latest | |
exclude: | |
# Only do pypy 3.7 on Linux | |
- os: macos-latest | |
python-version: 'pypy-3.7' | |
- os: macos-10.15 | |
python-version: 'pypy-3.7' | |
- os: macos-11 | |
python-version: 'pypy-3.7' | |
- os: macos-12 | |
python-version: 'pypy-3.7' | |
- os: windows-latest | |
python-version: 'pypy-3.7' | |
# Doesn't work yet. | |
- os: macos-10.15 | |
python-version: '3.10' | |
- os: macos-11 | |
python-version: '3.10' | |
- os: macos-12 | |
python-version: '3.10' | |
- os: macos-latest | |
python-version: '3.10' | |
- os: macos-latest | |
python-version: 3.9 | |
- os: macos-10.15 | |
python-version: 3.9 | |
- os: macos-latest | |
python-version: 3.8 | |
- os: macos-10.15 | |
python-version: 3.8 | |
# Not sure about 3.11 passing yet. | |
- os: macos-latest | |
python-version: '3.11' | |
- os: macos-12 | |
python-version: '3.11' | |
- os: macos-11 | |
python-version: '3.11' | |
- os: macos-10.15 | |
python-version: '3.11' | |
runs-on: ${{ matrix.os }} | |
name: ${{ matrix.os }} @ ${{ matrix.python-version }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
architecture: x64 | |
- name: Linux install LZO | |
if: runner.os == 'Linux' | |
run: sudo apt install liblzo2-dev | |
- name: macos install LZO | |
if: runner.os == 'macOS' | |
run: | | |
echo "$RUNNER_OS uses included lzo source" | |
echo PWD: `pwd` | |
echo LS lzo | |
ls -l lzo-2.10/ | |
echo LS lzo include | |
ls -l lzo-2.10/include/ | |
cd lzo-2.10 | |
./configure --enable-shared --disable-dependency-tracking --prefix=`pwd` | |
make | |
make test &> test_results | |
make install | |
cd .. | |
ls -l lzo-2.10/ | |
find ./lzo-2.10/ -name "*lzo2*" | |
- name: Add msbuild to PATH | |
if: runner.os == 'Windows' | |
uses: microsoft/[email protected] | |
with: | |
msbuild-architecture: x64 | |
- name: Setup LZO Windows | |
if: runner.os == 'Windows' | |
run: | | |
pwd | |
cd lzo-2.10 | |
mkdir build | |
cd build | |
cmake .. | |
pwd | |
- name: build LZO Windows | |
if: runner.os == 'Windows' | |
working-directory: .\lzo-2.10\build | |
run: msbuild lzo_static_lib.vcxproj -p:Configuration=Release -p:Platform=x64 -p:OutDir=..\ | |
- run: pip install -e ./ | |
- run: pip install pytest build | |
- run: pytest --doctest-modules tests/ | |
- run: ls -l | |
if: runner.os != 'Windows' | |
- run: python -m build | |
- name: Upload artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: wheels | |
path: dist | |
if-no-files-found: error | |
retention-days: 30 |