CI: Evaluates Python tests on Windows

pull/440/head
Tpt 2 years ago committed by Thomas Tanon
parent 88732f7dc7
commit 5852d0b4df
  1. 4
      .github/workflows/artifacts.yml
  2. 2
      .github/workflows/manylinux_build.sh
  3. 2
      .github/workflows/musllinux_build.sh
  4. 20
      .github/workflows/tests.yml

@ -180,7 +180,7 @@ jobs:
python-version: "3.10"
cache: pip
cache-dependency-path: '**/requirements.dev.txt'
- run: pip install -r python/requirements.dev.txt
- run: pip install "maturin~=0.14.0"
- run: maturin build --release -m python/Cargo.toml --features abi3
- run: pip install --no-index --find-links=target/wheels/ pyoxigraph
- run: rm -r target/wheels
@ -216,7 +216,7 @@ jobs:
cache: pip
cache-dependency-path: '**/requirements.dev.txt'
- run: Remove-Item -LiteralPath "C:\msys64\" -Force -Recurse
- run: pip install -r python/requirements.dev.txt
- run: pip install "maturin~=0.14.0"
- run: maturin build --release -m python/Cargo.toml --features abi3
- run: pip install --no-index --find-links=target/wheels/ pyoxigraph
- run: rm -r target/wheels

@ -10,7 +10,7 @@ export PATH="${PATH}:/opt/python/cp37-cp37m/bin:/opt/python/cp38-cp38/bin:/opt/p
cd python
python3.10 -m venv venv
source venv/bin/activate
pip install -r requirements.dev.txt
pip install "maturin~=0.14.0"
maturin develop --release -m Cargo.toml
python generate_stubs.py pyoxigraph pyoxigraph.pyi --black
maturin build --release -m Cargo.toml --features abi3 --compatibility manylinux2014

@ -8,7 +8,7 @@ export PATH="${PATH}:/opt/python/cp37-cp37m/bin:/opt/python/cp38-cp38/bin:/opt/p
cd python
python3.10 -m venv venv
source venv/bin/activate
pip install -r requirements.dev.txt
pip install "maturin~=0.14.0"
maturin develop --release -m Cargo.toml
python generate_stubs.py pyoxigraph pyoxigraph.pyi --black
maturin build --release -m Cargo.toml --features abi3 --compatibility musllinux_1_1

@ -268,6 +268,26 @@ jobs:
- run: python -m unittest
working-directory: ./python/tests
python_windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
with:
submodules: true
- run: rustup update
- uses: Swatinem/rust-cache@v2
- uses: actions/setup-python@v4
with:
python-version: "3.10"
cache: pip
cache-dependency-path: '**/requirements.dev.txt'
- run: pip install "maturin~=0.14.0"
- run: maturin build -m python/Cargo.toml
- run: pip install --no-index --find-links=target/wheels/ pyoxigraph
- run: rm -r target/wheels
- run: python -m unittest
working-directory: ./python/tests
typos:
runs-on: ubuntu-latest
steps:

Loading…
Cancel
Save