Skip to content

Commit

Permalink
Update CI files
Browse files Browse the repository at this point in the history
  • Loading branch information
Gal Ben David committed Jun 28, 2021
1 parent 94ad1e3 commit edb42cc
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 16 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
name: Build
on: [push, pull_request]

jobs:
lint:
if: github.event_name == 'push' && !startsWith(github.event.ref, 'refs/tags')
Expand All @@ -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
Expand All @@ -36,14 +35,15 @@ 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
run: poetry install
- name: Build Python package
run: poetry run maturin develop
- name: Test
run: poetry run pytest tests
run: poetry run pytest -Werror tests
31 changes: 22 additions & 9 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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 }}
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "pyrepscan"
version = "0.9.2"
version = "0.9.3"
authors = ["Gal Ben David <gal@intsights.com>"]
edition = "2018"
description = "A Git Repository Secrets Scanner written in Rust"
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ strip = true

[tool.poetry]
name = "pyrepscan"
version = "0.9.2"
version = "0.9.3"
authors = ["Gal Ben David <gal@intsights.com>"]
description = "A Git Repository Secrets Scanner written in Rust"
readme = "README.md"
Expand Down

0 comments on commit edb42cc

Please # to comment.