ci: try using --no-index for pip
This commit is contained in:
parent
cc74411d95
commit
db24e3c172
2 changed files with 20 additions and 33 deletions
52
.github/workflows/ci.yaml
vendored
52
.github/workflows/ci.yaml
vendored
|
|
@ -29,14 +29,9 @@ jobs:
|
||||||
~/.cargo/git/db/
|
~/.cargo/git/db/
|
||||||
target/
|
target/
|
||||||
key: ${{ runner.os }}-${{ matrix.target }}-cargo-${{ hashFiles('Cargo.lock') }}
|
key: ${{ runner.os }}-${{ matrix.target }}-cargo-${{ hashFiles('Cargo.lock') }}
|
||||||
- uses: mamba-org/setup-micromamba@v1
|
- uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
environment-name: ci
|
python-version: ${{ matrix.python-version }}
|
||||||
create-args: >-
|
|
||||||
python==${{ matrix.python-version }} pytest hypothesis
|
|
||||||
init-shell: bash
|
|
||||||
cache-environment: true
|
|
||||||
post-cleanup: 'all'
|
|
||||||
- name: Install Rust toolchain
|
- name: Install Rust toolchain
|
||||||
uses: dtolnay/rust-toolchain@stable
|
uses: dtolnay/rust-toolchain@stable
|
||||||
- name: Build
|
- name: Build
|
||||||
|
|
@ -47,14 +42,14 @@ jobs:
|
||||||
uses: PyO3/maturin-action@v1
|
uses: PyO3/maturin-action@v1
|
||||||
with:
|
with:
|
||||||
target: ${{ matrix.target }}
|
target: ${{ matrix.target }}
|
||||||
args: --release --out dist -i ${{ matrix.python-version }} --manifest-path pyargus/Cargo.toml --zig
|
args: --release --out dist -i ${{ matrix.python-version }} --manifest-path pyargus/Cargo.toml
|
||||||
manylinux: auto
|
manylinux: auto
|
||||||
- name: Python Tests
|
- name: Python Tests
|
||||||
if: matrix.target == 'x86_64'
|
if: matrix.target == 'x86_64'
|
||||||
shell: bash -el {0}
|
|
||||||
run: |
|
run: |
|
||||||
pip install dist/*.whl --force-reinstall
|
pip install pytest hypothesis
|
||||||
cd pyargus && pytest
|
pip install pyargus --no-index --find-links dist --force-reinstall
|
||||||
|
pytest pyargus
|
||||||
|
|
||||||
windows:
|
windows:
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
|
|
@ -73,14 +68,10 @@ jobs:
|
||||||
~/.cargo/git/db/
|
~/.cargo/git/db/
|
||||||
target/
|
target/
|
||||||
key: ${{ runner.os }}-${{ matrix.target }}-cargo-${{ hashFiles('Cargo.lock') }}
|
key: ${{ runner.os }}-${{ matrix.target }}-cargo-${{ hashFiles('Cargo.lock') }}
|
||||||
- uses: mamba-org/setup-micromamba@v1
|
- uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
environment-name: ci
|
python-version: ${{ matrix.python-version }}
|
||||||
create-args: >-
|
architecture: ${{ matrix.target }}
|
||||||
python==${{ matrix.python-version }} pytest hypothesis
|
|
||||||
init-shell: powershell
|
|
||||||
cache-environment: true
|
|
||||||
post-cleanup: 'all'
|
|
||||||
- name: Install Rust toolchain
|
- name: Install Rust toolchain
|
||||||
uses: dtolnay/rust-toolchain@stable
|
uses: dtolnay/rust-toolchain@stable
|
||||||
- name: Build
|
- name: Build
|
||||||
|
|
@ -91,13 +82,13 @@ jobs:
|
||||||
uses: PyO3/maturin-action@v1
|
uses: PyO3/maturin-action@v1
|
||||||
with:
|
with:
|
||||||
target: ${{ matrix.target }}
|
target: ${{ matrix.target }}
|
||||||
args: --release --out dist -i ${{ matrix.python-version }} --manifest-path pyargus/Cargo.toml --zig
|
args: --release --out dist -i ${{ matrix.python-version }} --manifest-path pyargus/Cargo.toml
|
||||||
manylinux: auto
|
manylinux: auto
|
||||||
- name: Python Tests
|
- name: Python Tests
|
||||||
shell: pwsh
|
|
||||||
run: |
|
run: |
|
||||||
pip install dist/*.whl --force-reinstall
|
pip install pytest hypothesis
|
||||||
cd pyargus && pytest
|
pip install pyargus --no-index --find-links dist --force-reinstall
|
||||||
|
pytest pyargus
|
||||||
|
|
||||||
macos:
|
macos:
|
||||||
runs-on: macos-latest
|
runs-on: macos-latest
|
||||||
|
|
@ -116,14 +107,9 @@ jobs:
|
||||||
~/.cargo/git/db/
|
~/.cargo/git/db/
|
||||||
target/
|
target/
|
||||||
key: ${{ runner.os }}-${{ matrix.target }}-cargo-${{ hashFiles('Cargo.lock') }}
|
key: ${{ runner.os }}-${{ matrix.target }}-cargo-${{ hashFiles('Cargo.lock') }}
|
||||||
- uses: mamba-org/setup-micromamba@v1
|
- uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
environment-name: ci
|
python-version: ${{ matrix.python-version }}
|
||||||
create-args: >-
|
|
||||||
python==${{ matrix.python-version }} pytest hypothesis
|
|
||||||
init-shell: bash
|
|
||||||
cache-environment: true
|
|
||||||
post-cleanup: 'all'
|
|
||||||
- name: Install Rust toolchain
|
- name: Install Rust toolchain
|
||||||
uses: dtolnay/rust-toolchain@stable
|
uses: dtolnay/rust-toolchain@stable
|
||||||
with:
|
with:
|
||||||
|
|
@ -136,10 +122,10 @@ jobs:
|
||||||
uses: PyO3/maturin-action@v1
|
uses: PyO3/maturin-action@v1
|
||||||
with:
|
with:
|
||||||
target: ${{ matrix.target }}
|
target: ${{ matrix.target }}
|
||||||
args: --release --out dist -i ${{ matrix.python-version }} --manifest-path pyargus/Cargo.toml --zig
|
args: --release --out dist -i ${{ matrix.python-version }} --manifest-path pyargus/Cargo.toml
|
||||||
manylinux: auto
|
manylinux: auto
|
||||||
- name: Python Tests
|
- name: Python Tests
|
||||||
shell: bash -el {0}
|
|
||||||
run: |
|
run: |
|
||||||
pip install dist/*.whl --force-reinstall
|
pip install pytest hypothesis
|
||||||
cd pyargus && pytest
|
pip install pyargus --no-index --find-links dist --force-reinstall
|
||||||
|
pytest pyargus
|
||||||
|
|
|
||||||
|
|
@ -18,6 +18,7 @@ dependencies:
|
||||||
- pydata-sphinx-theme
|
- pydata-sphinx-theme
|
||||||
- sphinx-copybutton
|
- sphinx-copybutton
|
||||||
- myst-parser
|
- myst-parser
|
||||||
|
- cffi
|
||||||
- pip:
|
- pip:
|
||||||
- sphinx-autoapi
|
- sphinx-autoapi
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue