Bump decancer to 2.0.1 #71
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: | |
- "master" | |
pull_request: | |
release: | |
types: [published] | |
jobs: | |
test-python: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Install python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install poetry | |
uses: Gr1N/setup-poetry@v8 | |
- name: Run test | |
run: | | |
pip install -U pip | |
poetry install -q | |
poetry run nox -s tests | |
linux-x86: | |
needs: test-python | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Build wheels | |
uses: messense/maturin-action@v1 | |
with: | |
target: x86_64 | |
manylinux: auto | |
command: build | |
args: "--release -i 3.8 3.9 3.10 3.11 3.12 --sdist -o dist" | |
- name: Upload wheels | |
uses: actions/upload-artifact@v3 | |
with: | |
name: wheels | |
path: dist | |
linux-i686: | |
needs: test-python | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Build wheels | |
uses: messense/maturin-action@v1 | |
with: | |
target: i686 | |
manylinux: auto | |
command: build | |
args: "--release -i 3.8 3.9 3.10 3.11 3.12 -o dist" | |
- name: Upload wheels | |
uses: actions/upload-artifact@v3 | |
with: | |
name: wheels | |
path: dist | |
linux-armv7: | |
needs: test-python | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Build wheels | |
uses: messense/maturin-action@v1 | |
with: | |
target: armv7 | |
manylinux: auto | |
command: build | |
args: "--release -i 3.8 3.9 3.10 3.11 3.12 -o dist" | |
- name: Upload wheels | |
uses: actions/upload-artifact@v3 | |
with: | |
name: wheels | |
path: dist | |
linux-aarch64: | |
needs: test-python | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Build wheels | |
uses: messense/maturin-action@v1 | |
with: | |
target: aarch64 | |
manylinux: auto | |
command: build | |
args: "--release -i 3.8 3.9 3.10 3.11 3.12 -o dist" | |
- name: Upload wheels | |
uses: actions/upload-artifact@v3 | |
with: | |
name: wheels | |
path: dist | |
windows: | |
needs: test-python | |
runs-on: windows-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Build wheels | |
uses: messense/maturin-action@v1 | |
with: | |
command: build | |
args: "--release -i 3.8 3.9 3.10 3.11 3.12 -o dist" | |
- name: Upload wheels | |
uses: actions/upload-artifact@v3 | |
with: | |
name: wheels | |
path: dist | |
macos: | |
needs: test-python | |
runs-on: macos-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Build wheels | |
uses: messense/maturin-action@v1 | |
with: | |
command: build | |
args: "--release -i 3.8 3.9 3.10 3.11 3.12 -o dist --target universal2-apple-darwin" | |
- name: Upload wheels | |
uses: actions/upload-artifact@v3 | |
with: | |
name: wheels | |
path: dist | |
release: | |
name: Release | |
runs-on: ubuntu-latest | |
if: ${{ github.event_name == 'release' && github.event.action == 'published' }} | |
needs: | |
[ | |
macos, | |
windows, | |
linux-x86, | |
linux-i686, | |
linux-armv7, | |
linux-aarch64, | |
test-python, | |
] | |
steps: | |
- name: Download artifacts | |
uses: actions/download-artifact@v3 | |
with: | |
name: wheels | |
- name: Publish to PyPI | |
uses: messense/maturin-action@v1 | |
env: | |
MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }} | |
with: | |
command: upload | |
args: --skip-existing * |