Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .github/.codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
codecov:
branch: main

coverage:
status:
project:
default:
target: auto
threshold: 0%
patch:
default:
target: auto
threshold: 0%
19 changes: 19 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
version: 2

updates:
- package-ecosystem: pip
directory: '/'
schedule:
interval: daily
commit-message:
prefix: '⬆️ '
labels:
- dependencies
- package-ecosystem: github-actions
directory: '/'
schedule:
interval: daily
commit-message:
prefix: '⬆️ '
labels:
- dependencies
74 changes: 74 additions & 0 deletions .github/workflows/build-package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
name: Build package

on:
push:
branches:
- main
paths-ignore:
- '**.md'
- LICENSE
pull_request:
branches:
- main
paths-ignore:
- '**.md'
- LICENSE

jobs:
lint:
name: Run linters
runs-on: ubuntu-latest
strategy:
matrix:
session:
- black
- mypy
- ruff
fail-fast: false
steps:
- name: Check out 🎉
uses: actions/checkout@v4.1.1
- name: Set up Python 🐍
uses: actions/setup-python@v4.7.1
with:
cache: pip
- name: Install Nox 📦
run: |
python -m pip install --upgrade pip
python -m pip install nox
- name: Run Nox 🦊
run:
nox -s ${{ matrix.session }}
test:
name: Run tests
runs-on: ${{ matrix.platform }}
strategy:
matrix:
platform:
- ubuntu-latest
- macos-latest
- windows-latest
fail-fast: false
steps:
- name: Check out 🎉
uses: actions/checkout@v4.1.1
- name: Set up Python 🐍
uses: actions/setup-python@v4.7.1
with:
python-version: |
3.10
3.11
3.12
cache: pip
- name: Install Nox 📦
run: |
python -m pip install --upgrade pip
python -m pip install nox
- name: Run Nox 🦊
run:
nox -s test
- name: Upload coverage reports to Codecov ⛱️
if: ${{ matrix.platform == 'ubuntu-latest' }}
uses: codecov/codecov-action@v3.1.4
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# python-gitmojis

[![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?style=flat-square&logo=pre-commit)][pre-commit.ci]
[![github-build-workflow](https://img.shields.io/github/actions/workflow/status/paduszyk/python-gitmojis/build-package.yml?style=flat-square&logo=github)][github-build-workflow]
[![codecov](https://img.shields.io/codecov/c/github/paduszyk/python-gitmojis?style=flat-square&logo=codecov)][codecov]

[![nox](https://img.shields.io/badge/%F0%9F%A6%8A-Nox-D85E00.svg?style=flat-square)][nox]
[![ruff](https://img.shields.io/endpoint?style=flat-square&url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)][ruff]
Expand Down Expand Up @@ -31,6 +33,8 @@ Created by Kamil Paduszyński ([@paduszyk][github-paduszyk]).
Released under the [MIT License][license].

[black]: https://github.com/psf/black
[codecov]: https://app.codecov.io/gh/paduszyk/python-gitmojis
[github-build-workflow]: https://github.com/paduszyk/python-gitmojis/actions/workflows/build-package.yml
[github-carlosquesta]: https://github.com/carloscuesta
[github-paduszyk]: https://github.com/paduszyk
[gitmoji-repository]: https://github.com/carloscuesta/gitmoji
Expand Down