Skip to content

Commit edb42cc

Browse files
author
Gal Ben David
committed
Update CI files
1 parent 94ad1e3 commit edb42cc

File tree

5 files changed

+29
-16
lines changed

5 files changed

+29
-16
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
name: Build
22
on: [push, pull_request]
3-
43
jobs:
54
lint:
65
if: github.event_name == 'push' && !startsWith(github.event.ref, 'refs/tags')
@@ -25,7 +24,7 @@ jobs:
2524
strategy:
2625
fail-fast: false
2726
matrix:
28-
python-version: [3.6, 3.7, 3.8, 3.9]
27+
python-version: [3.7, 3.8, 3.9]
2928
os: [ubuntu-latest , macos-latest, windows-latest]
3029
steps:
3130
- name: Checkout
@@ -36,14 +35,15 @@ jobs:
3635
python-version: ${{ matrix.python-version }}
3736
- name: Run image
3837
uses: abatilo/[email protected]
39-
- name: Install latest rust
38+
- name: Install Rust
4039
uses: actions-rs/toolchain@v1
4140
with:
41+
profile: minimal
4242
toolchain: stable
4343
override: true
4444
- name: Install dependencies
4545
run: poetry install
4646
- name: Build Python package
4747
run: poetry run maturin develop
4848
- name: Test
49-
run: poetry run pytest tests
49+
run: poetry run pytest -Werror tests

.github/workflows/deploy.yml

Lines changed: 22 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
name: Deploy
22
on:
33
release:
4-
types: [published]
5-
4+
types: [released]
65
jobs:
76
deploy:
87
runs-on: ${{ matrix.os }}
98
strategy:
109
fail-fast: false
1110
matrix:
12-
python-version: [3.6, 3.7, 3.8, 3.9]
11+
python-version: [3.7, 3.8, 3.9]
1312
os: [ubuntu-latest, macos-latest, windows-latest]
1413
steps:
1514
- name: Checkout
@@ -18,15 +17,29 @@ jobs:
1817
uses: actions/setup-python@v2
1918
with:
2019
python-version: ${{ matrix.python-version }}
21-
- name: Install latest rust
20+
- name: Install Rust
2221
uses: actions-rs/toolchain@v1
2322
with:
23+
profile: minimal
2424
toolchain: stable
2525
override: true
26-
- name: Install dependencies
27-
run: |
28-
python -m pip install --upgrade pip maturin
29-
- name: Build & Publish to PyPi
30-
run: maturin publish --username __token__ --no-sdist --interpreter python${{matrix.python_version}} --manylinux=2014 --skip-auditwheel
26+
- name: Publish Package
27+
if: matrix.os != 'windows-latest'
28+
uses: messense/maturin-action@v1
29+
with:
30+
maturin-version: latest
31+
command: publish
32+
manylinux: 2014
33+
args: --username=__token__ --no-sdist --interpreter=python${{ matrix.python-version }}
34+
env:
35+
MATURIN_PASSWORD: ${{ secrets.pypi_password }}
36+
- name: Publish Package
37+
if: matrix.os == 'windows-latest'
38+
uses: messense/maturin-action@v1
39+
with:
40+
maturin-version: latest
41+
command: publish
42+
manylinux: 2014
43+
args: --username=__token__ --no-sdist --interpreter=python
3144
env:
3245
MATURIN_PASSWORD: ${{ secrets.pypi_password }}

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "pyrepscan"
3-
version = "0.9.2"
3+
version = "0.9.3"
44
authors = ["Gal Ben David <[email protected]>"]
55
edition = "2018"
66
description = "A Git Repository Secrets Scanner written in Rust"

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2020 Gal Ben David
3+
Copyright (c) 2021 Gal Ben David
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ strip = true
1414

1515
[tool.poetry]
1616
name = "pyrepscan"
17-
version = "0.9.2"
17+
version = "0.9.3"
1818
authors = ["Gal Ben David <[email protected]>"]
1919
description = "A Git Repository Secrets Scanner written in Rust"
2020
readme = "README.md"

0 commit comments

Comments
 (0)