diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4708333..1f121ef 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,6 +1,5 @@ name: Build on: [push, pull_request] - jobs: lint: if: github.event_name == 'push' && !startsWith(github.event.ref, 'refs/tags') @@ -25,7 +24,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: [3.6, 3.7, 3.8, 3.9] + python-version: [3.7, 3.8, 3.9] os: [ubuntu-latest , macos-latest, windows-latest] steps: - name: Checkout @@ -36,9 +35,10 @@ jobs: python-version: ${{ matrix.python-version }} - name: Run image uses: abatilo/actions-poetry@v2.0.0 - - name: Install latest rust + - name: Install Rust uses: actions-rs/toolchain@v1 with: + profile: minimal toolchain: stable override: true - name: Install dependencies @@ -46,4 +46,4 @@ jobs: - name: Build Python package run: poetry run maturin develop - name: Test - run: poetry run pytest tests + run: poetry run pytest -Werror tests diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 760cfe2..accf916 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -1,15 +1,14 @@ name: Deploy on: release: - types: [published] - + types: [released] jobs: deploy: runs-on: ${{ matrix.os }} strategy: fail-fast: false matrix: - python-version: [3.6, 3.7, 3.8, 3.9] + python-version: [3.7, 3.8, 3.9] os: [ubuntu-latest, macos-latest, windows-latest] steps: - name: Checkout @@ -18,15 +17,29 @@ jobs: uses: actions/setup-python@v2 with: python-version: ${{ matrix.python-version }} - - name: Install latest rust + - name: Install Rust uses: actions-rs/toolchain@v1 with: + profile: minimal toolchain: stable override: true - - name: Install dependencies - run: | - python -m pip install --upgrade pip maturin - - name: Build & Publish to PyPi - run: maturin publish --username __token__ --no-sdist --interpreter python${{matrix.python_version}} --manylinux=2014 --skip-auditwheel + - name: Publish Package + if: matrix.os != 'windows-latest' + uses: messense/maturin-action@v1 + with: + maturin-version: latest + command: publish + manylinux: 2014 + args: --username=__token__ --no-sdist --interpreter=python${{ matrix.python-version }} + env: + MATURIN_PASSWORD: ${{ secrets.pypi_password }} + - name: Publish Package + if: matrix.os == 'windows-latest' + uses: messense/maturin-action@v1 + with: + maturin-version: latest + command: publish + manylinux: 2014 + args: --username=__token__ --no-sdist --interpreter=python env: MATURIN_PASSWORD: ${{ secrets.pypi_password }} diff --git a/Cargo.toml b/Cargo.toml index c8d62f7..fd09d79 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "pyrepscan" -version = "0.9.2" +version = "0.9.3" authors = ["Gal Ben David "] edition = "2018" description = "A Git Repository Secrets Scanner written in Rust" diff --git a/LICENSE b/LICENSE index 637ad53..6f3ba7c 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2020 Gal Ben David +Copyright (c) 2021 Gal Ben David Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/pyproject.toml b/pyproject.toml index 6e9b0c4..2d6f0b2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -14,7 +14,7 @@ strip = true [tool.poetry] name = "pyrepscan" -version = "0.9.2" +version = "0.9.3" authors = ["Gal Ben David "] description = "A Git Repository Secrets Scanner written in Rust" readme = "README.md"