Skip to content

Commit e2d7f74

Browse files
author
Martin Møldrup
committed
Add CI workflow and update project file
1 parent 83bb15f commit e2d7f74

File tree

2 files changed

+43
-2
lines changed

2 files changed

+43
-2
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Continuous Integration
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
lint_and_type_check:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- name: Checkout repository
11+
uses: actions/checkout@v2
12+
13+
- name: Set up Python
14+
uses: actions/setup-python@v2
15+
with:
16+
python-version: "3.9"
17+
18+
- name: Install Poetry
19+
run: |
20+
curl -sSL https://install.python-poetry.org | python3 -
21+
echo "$HOME/.local/bin" >> $GITHUB_PATH
22+
23+
- name: Install dependencies
24+
run: poetry install --no-dev
25+
26+
- name: Run ruff
27+
run: ruff check snappylapy
28+
29+
- name: Run mypy
30+
run: mypy snappylapy

pyproject.toml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[tool.poetry]
22
name = "snappylapy"
33
version = "0.0.1"
4-
description = "Testing lib"
4+
description = "A powerful and intuitive snapshot testing tool for pytest based on the Jest API."
55
authors = ["Martin Møldrup"]
66
readme = "README.md"
77
classifiers = [
@@ -18,11 +18,22 @@ classifiers = [
1818
"Programming Language :: Python :: 3 :: Only",
1919
"Programming Language :: Python :: Implementation :: CPython",
2020
"Programming Language :: Python :: Implementation :: PyPy",
21-
"License :: OSI Approved :: MIT License",
21+
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
2222
]
2323
packages = [
2424
{ include = "snappylapy" },
2525
]
26+
repository = "https://github.com/martinmoldrup/snappylapy"
27+
28+
keywords = [
29+
"pytest",
30+
"snapshot",
31+
"testing",
32+
"snapshot-testing",
33+
]
34+
35+
[tool.poetry.urls]
36+
"Bug Tracker" = "https://github.com/martinmoldrup/snappylapy/issues"
2637

2738
[tool.poetry.dependencies]
2839
python = "^3.9"

0 commit comments

Comments
 (0)