fix(ci): remember that the CI script is only for testing
This commit is contained in:
parent
db24e3c172
commit
ca96c75af8
2 changed files with 42 additions and 36 deletions
76
.github/workflows/ci.yaml
vendored
76
.github/workflows/ci.yaml
vendored
|
|
@ -29,27 +29,30 @@ 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: actions/setup-python@v4
|
- uses: mamba-org/setup-micromamba@v1
|
||||||
with:
|
with:
|
||||||
python-version: ${{ matrix.python-version }}
|
environment-name: ci
|
||||||
|
environment-file: environment.yaml
|
||||||
|
create-args: >-
|
||||||
|
python==${{ matrix.python-version }}
|
||||||
|
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
|
||||||
|
shell: bash -el {0}
|
||||||
run: cargo build --release
|
run: cargo build --release
|
||||||
- name: Rust Tests
|
- name: Rust Tests
|
||||||
|
shell: bash -el {0}
|
||||||
run: cargo test --release
|
run: cargo test --release
|
||||||
- name: Build wheels
|
- name: Build wheels
|
||||||
uses: PyO3/maturin-action@v1
|
shell: bash -el {0}
|
||||||
with:
|
run: maturin develop --release -i ${{ matrix.python-version }} --manifest-path pyargus/Cargo.toml
|
||||||
target: ${{ matrix.target }}
|
|
||||||
args: --release --out dist -i ${{ matrix.python-version }} --manifest-path pyargus/Cargo.toml
|
|
||||||
manylinux: auto
|
|
||||||
- name: Python Tests
|
- name: Python Tests
|
||||||
if: matrix.target == 'x86_64'
|
if: matrix.target == 'x86_64'
|
||||||
run: |
|
shell: bash -el {0}
|
||||||
pip install pytest hypothesis
|
run: pytest pyargus
|
||||||
pip install pyargus --no-index --find-links dist --force-reinstall
|
|
||||||
pytest pyargus
|
|
||||||
|
|
||||||
windows:
|
windows:
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
|
|
@ -68,27 +71,29 @@ 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: actions/setup-python@v4
|
- uses: mamba-org/setup-micromamba@v1
|
||||||
with:
|
with:
|
||||||
python-version: ${{ matrix.python-version }}
|
environment-name: ci
|
||||||
architecture: ${{ matrix.target }}
|
environment-file: environment.yaml
|
||||||
|
create-args: >-
|
||||||
|
python==${{ matrix.python-version }}
|
||||||
|
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
|
||||||
|
shell: pwsh
|
||||||
run: cargo build --release
|
run: cargo build --release
|
||||||
- name: Rust Tests
|
- name: Rust Tests
|
||||||
|
shell: pwsh
|
||||||
run: cargo test --release
|
run: cargo test --release
|
||||||
- name: Build wheels
|
- name: Build wheels
|
||||||
uses: PyO3/maturin-action@v1
|
shell: pwsh
|
||||||
with:
|
run: maturin develop --release -i ${{ matrix.python-version }} --manifest-path pyargus/Cargo.toml
|
||||||
target: ${{ matrix.target }}
|
|
||||||
args: --release --out dist -i ${{ matrix.python-version }} --manifest-path pyargus/Cargo.toml
|
|
||||||
manylinux: auto
|
|
||||||
- name: Python Tests
|
- name: Python Tests
|
||||||
run: |
|
shell: pwsh
|
||||||
pip install pytest hypothesis
|
run: pytest pyargus
|
||||||
pip install pyargus --no-index --find-links dist --force-reinstall
|
|
||||||
pytest pyargus
|
|
||||||
|
|
||||||
macos:
|
macos:
|
||||||
runs-on: macos-latest
|
runs-on: macos-latest
|
||||||
|
|
@ -107,25 +112,28 @@ 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: actions/setup-python@v4
|
- uses: mamba-org/setup-micromamba@v1
|
||||||
with:
|
with:
|
||||||
python-version: ${{ matrix.python-version }}
|
environment-name: ci
|
||||||
|
environment-file: environment.yaml
|
||||||
|
create-args: >-
|
||||||
|
python==${{ matrix.python-version }}
|
||||||
|
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:
|
||||||
targets: ${{ matrix.target }}-apple-darwin
|
targets: ${{ matrix.target }}-apple-darwin
|
||||||
- name: Build
|
- name: Build
|
||||||
|
shell: bash -el {0}
|
||||||
run: cargo build --release
|
run: cargo build --release
|
||||||
- name: Rust Tests
|
- name: Rust Tests
|
||||||
|
shell: bash -el {0}
|
||||||
run: cargo test --release
|
run: cargo test --release
|
||||||
- name: Build wheels
|
- name: Build wheels
|
||||||
uses: PyO3/maturin-action@v1
|
shell: bash -el {0}
|
||||||
with:
|
run: maturin develop --release -i ${{ matrix.python-version }} --manifest-path pyargus/Cargo.toml
|
||||||
target: ${{ matrix.target }}
|
|
||||||
args: --release --out dist -i ${{ matrix.python-version }} --manifest-path pyargus/Cargo.toml
|
|
||||||
manylinux: auto
|
|
||||||
- name: Python Tests
|
- name: Python Tests
|
||||||
run: |
|
shell: bash -el {0}
|
||||||
pip install pytest hypothesis
|
run: pytest pyargus
|
||||||
pip install pyargus --no-index --find-links dist --force-reinstall
|
|
||||||
pytest pyargus
|
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,6 @@ channels:
|
||||||
dependencies:
|
dependencies:
|
||||||
- python>=3.8
|
- python>=3.8
|
||||||
- maturin
|
- maturin
|
||||||
- patchelf
|
|
||||||
- nox
|
- nox
|
||||||
- mypy
|
- mypy
|
||||||
- black
|
- black
|
||||||
|
|
@ -18,7 +17,6 @@ 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