Skip to content

Commit

Permalink
CI test
Browse files Browse the repository at this point in the history
  • Loading branch information
ThanatosGit committed Jan 1, 2024
1 parent 2b23d6a commit d090a62
Showing 1 changed file with 16 additions and 9 deletions.
25 changes: 16 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,13 @@ jobs:
matrix:
os:
# - windows-2019
- ubuntu-20.04
- ubuntu-latest
# - macos-11
# - macos-latest
python-version:
- "3.12"
- "3.11"
python-version: [ {cpver: "cp311*", py: "3.11"}]
#python-version:
# - "3.12"
# - "3.11"
lua-version:
- "bundle"

Expand All @@ -34,24 +35,30 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Set up Python ${{ matrix.python-version }}
if: ${{ !startsWith(matrix.os, 'ubuntu') || startsWith(matrix.python-version, '3.') || startsWith(matrix.python-version, 'pypy') }}
- name: Set up Python ${{ matrix.python-version.py }}
if: ${{ !startsWith(matrix.os, 'ubuntu') || startsWith(matrix.python-version.py, '3.') || startsWith(matrix.python-version.py, 'pypy') }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
python-version.py: ${{ matrix.python-version.py }}

- name: Set up Python packages
run: |
python -m pip install -U pip setuptools
python -m pip install -U wheel tox virtualenv -r requirements.txt
- name: Build wheel
run: python setup.py sdist ${{ contains(matrix.python-version, '3.') && 'build_ext -j6' || '' }} bdist_wheel
if: ${{ !startsWith(matrix.os, 'ubuntu') }}
run: python setup.py sdist ${{ contains(matrix.python-version.py, '3.') && 'build_ext -j6' || '' }} bdist_wheel
env:
SETUP_OPTIONS: --use-bundle --no-luajit
CFLAGS: ${{ env.CFLAGS }} ${{ env.CFLAGS_LTO }}
LDFLAGS: ${{ env.CFLAGS_LTO }}

- name: Build Linux wheels
if: ${{ startsWith(matrix.os, 'ubuntu') }}
run: make USE_BUNDLE=true sdist wheel_manylinux2014_x86_64
env: { PYTHON_BUILD_VERSION: "${{ matrix.python-version.cpver }}" }

- name: Run tests
run: python setup.py test
env:
Expand All @@ -63,7 +70,7 @@ jobs:
if: ${{ contains(matrix.lua-version, 'bundle') }}
uses: actions/upload-artifact@v4
with:
name: wheels-${{ matrix.python-version }}-${{ matrix.os }}
name: wheels-${{ matrix.python-version.py }}-${{ matrix.os }}
path: dist/*.whl
if-no-files-found: ignore

Expand Down

0 comments on commit d090a62

Please sign in to comment.