mirror of https://github.com/astral-sh/ruff
Minor updates to the workflow file
This commit is contained in:
parent
c766174c55
commit
b1b507ed29
|
|
@ -23,10 +23,6 @@ jobs:
|
||||||
target: aarch64-apple-darwin
|
target: aarch64-apple-darwin
|
||||||
profile: minimal
|
profile: minimal
|
||||||
default: true
|
default: true
|
||||||
- name: Build
|
|
||||||
run: cargo build --release
|
|
||||||
- name: Tests
|
|
||||||
run: cargo test --no-default-features --release
|
|
||||||
- name: Build wheels - x86_64
|
- name: Build wheels - x86_64
|
||||||
uses: messense/maturin-action@v1
|
uses: messense/maturin-action@v1
|
||||||
with:
|
with:
|
||||||
|
|
@ -70,12 +66,6 @@ jobs:
|
||||||
toolchain: stable
|
toolchain: stable
|
||||||
profile: minimal
|
profile: minimal
|
||||||
default: true
|
default: true
|
||||||
- name: Build
|
|
||||||
if: matrix.target == 'x64'
|
|
||||||
run: cargo build --release
|
|
||||||
- name: Tests
|
|
||||||
if: matrix.target == 'x64'
|
|
||||||
run: cargo test --no-default-features --release
|
|
||||||
- name: Build wheels
|
- name: Build wheels
|
||||||
uses: messense/maturin-action@v1
|
uses: messense/maturin-action@v1
|
||||||
with:
|
with:
|
||||||
|
|
@ -104,10 +94,6 @@ jobs:
|
||||||
toolchain: stable
|
toolchain: stable
|
||||||
profile: minimal
|
profile: minimal
|
||||||
default: true
|
default: true
|
||||||
- name: Build
|
|
||||||
run: cargo build --release
|
|
||||||
- name: Tests
|
|
||||||
run: cargo test --no-default-features --release
|
|
||||||
- uses: actions/setup-python@v2
|
- uses: actions/setup-python@v2
|
||||||
with:
|
with:
|
||||||
python-version: ${{ matrix.python-version }}
|
python-version: ${{ matrix.python-version }}
|
||||||
|
|
@ -147,7 +133,6 @@ jobs:
|
||||||
arch: ${{ matrix.target }}
|
arch: ${{ matrix.target }}
|
||||||
distro: ubuntu20.04
|
distro: ubuntu20.04
|
||||||
githubToken: ${{ github.token }}
|
githubToken: ${{ github.token }}
|
||||||
# Mount the dist directory as /artifacts in the container
|
|
||||||
dockerRunArgs: |
|
dockerRunArgs: |
|
||||||
--volume "${PWD}/dist:/artifacts"
|
--volume "${PWD}/dist:/artifacts"
|
||||||
install: |
|
install: |
|
||||||
|
|
@ -180,7 +165,7 @@ jobs:
|
||||||
- uses: actions/setup-python@v2
|
- uses: actions/setup-python@v2
|
||||||
with:
|
with:
|
||||||
python-version: '3.10'
|
python-version: '3.10'
|
||||||
- name: Publish to PyPi
|
- name: Publish to PyPI
|
||||||
env:
|
env:
|
||||||
TWINE_USERNAME: __token__
|
TWINE_USERNAME: __token__
|
||||||
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
|
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue