Fixes for new matrix option, refs #347

This commit is contained in:
Simon Willison 2021-11-29 15:20:32 -08:00 committed by GitHub
commit e02c8f35d4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -15,7 +15,9 @@ jobs:
os: [ubuntu-latest, macos-latest, windows-latest] os: [ubuntu-latest, macos-latest, windows-latest]
include: include:
- os: ubuntu-latest - os: ubuntu-latest
pysqlite3_sqlite_3_37: true python-version: "3.10"
numpy: 0
pysqlite3_sqlite_3_37: 1
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }} - name: Set up Python ${{ matrix.python-version }}
@ -36,7 +38,7 @@ jobs:
if: matrix.numpy == 1 if: matrix.numpy == 1
run: pip install numpy run: pip install numpy
- name: Optionall install pysqlite3 with SQLite 3.37 - name: Optionall install pysqlite3 with SQLite 3.37
if: matrix.pysqlite3_sqlite_3_37 if: matrix.pysqlite3_sqlite_3_37 == 1
run: |- run: |-
cd /tmp cd /tmp
mkdir sqlite-3.37 mkdir sqlite-3.37
@ -46,6 +48,7 @@ jobs:
git clone https://github.com/coleifer/pysqlite3/ git clone https://github.com/coleifer/pysqlite3/
cp sqlite-amalgamation-3370000/sqlite3.[ch] pysqlite3 cp sqlite-amalgamation-3370000/sqlite3.[ch] pysqlite3
cd pysqlite3 cd pysqlite3
pip install wheel
python setup.py build_static build bdist_wheel python setup.py build_static build bdist_wheel
pip install /tmp/sqlite-3.37/pysqlite3/dist/*.whl pip install /tmp/sqlite-3.37/pysqlite3/dist/*.whl
- name: Run tests - name: Run tests