Skip to content

Commit e78e31d

Browse files
committed
Add CI (#15)
Add test and release badges to README.
1 parent d69c7d4 commit e78e31d

File tree

3 files changed

+35
-3
lines changed

3 files changed

+35
-3
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: test
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14.0-alpha.3"]
16+
steps:
17+
- uses: actions/checkout@v4
18+
- name: Set up Python ${{ matrix.python-version }}
19+
uses: actions/setup-python@v3
20+
with:
21+
python-version: ${{ matrix.python-version }}
22+
- name: Install dependencies
23+
run: |
24+
python -m pip install --upgrade pip
25+
pip install -r requirements.txt
26+
pip install .
27+
- name: Lint code with Ruff
28+
run: ruff check --output-format=github --target-version=py39
29+
- name: Check code formatting with Ruff
30+
run: ruff format --diff --target-version=py39
31+
- name: Test with pytest
32+
run: |
33+
pytest

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22

33
[![PyPI - Version](https://img.shields.io/pypi/v/protestr.svg)](https://pypi.org/project/protestr)
44
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/protestr.svg)](https://pypi.org/project/protestr)
5-
6-
-----
5+
![test](https://github.com/Grimmscorpp/protestr/actions/workflows/lint-and-test.yml/badge.svg)
76

87
Protestr is a simple, powerful [fixture](#specs-and-fixtures) provider for Python tests.
98
Whether writing unit tests, integration tests, or anything in between, Protestr's

src/protestr/__about__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "4.1.1"
1+
__version__ = "4.1.2"

0 commit comments

Comments
 (0)