Skip to content

Commit

Permalink
Merge pull request #7 from ionite34/project-info
Browse files Browse the repository at this point in the history
  • Loading branch information
ionite34 authored Sep 19, 2022
2 parents fc7b451 + cfe89ad commit b65e682
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 2 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/py-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Python Tests

on:
push:
branches:
- main
pull_request:
workflow_call:
workflow_dispatch:

jobs:
build:
name: Build and Test
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
python-version: ["3.7", "3.11.0-rc.2"]
os: [ubuntu-latest, windows-latest, macos-latest]

steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}

- name: Install Package
run: |
python -m pip install .[dev]
- name: Build
run: |
maturin build --release
python -m pip install .
- name: Test
run: |
python -m pytest tests
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "base2048"
description = "Binary encoding with Base2048 in Rust."
version = "0.1.1"
version = "0.1.2"
edition = "2021"
exclude = ["/dist"]

Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@

[![build_badge]][build_url]
[![Rust Tests](https://github.com/ionite34/base2048/actions/workflows/rust-test.yml/badge.svg)](https://github.com/ionite34/base2048/actions/workflows/rust-test.yml)
[![Python Tests](https://github.com/ionite34/base2048/actions/workflows/py-test.yml/badge.svg)](https://github.com/ionite34/base2048/actions/workflows/py-test.yml)

[![codecov](https://codecov.io/gh/ionite34/base2048/branch/main/graph/badge.svg?token=1Qdx8w3zoy)](https://codecov.io/gh/ionite34/base2048)
[![pre-commit.ci status](https://results.pre-commit.ci/badge/github/ionite34/base2048/main.svg)](https://results.pre-commit.ci/latest/github/ionite34/base2048/main)

Expand Down
9 changes: 8 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,14 +1,19 @@
[project]
name = "base2048"
description = "Binary encoding with Base2048 in Rust."
version = "0.1.1"
version = "0.1.2"
readme = "README.md"
requires-python = ">=3.7"
license = { text = "MIT" }
classifiers = [
"Programming Language :: Rust",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
]
keywords = ["base2048", "base64", "base-encoding", "encoding", "decoding"]

Expand All @@ -17,6 +22,8 @@ dev = [
"maturin",
"pytest",
"pytest-cov",
]
fuzz = [
"frelatage",
]

Expand Down

0 comments on commit b65e682

Please sign in to comment.