Skip to content

Commit

Permalink
Add CI workflow and update project file
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Møldrup committed Jan 6, 2025
1 parent 83bb15f commit e2d7f74
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 2 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/continuous_integration.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Continuous Integration

on: [push, pull_request]

jobs:
lint_and_type_check:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.9"

- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
echo "$HOME/.local/bin" >> $GITHUB_PATH
- name: Install dependencies
run: poetry install --no-dev

- name: Run ruff
run: ruff check snappylapy

- name: Run mypy
run: mypy snappylapy
15 changes: 13 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[tool.poetry]
name = "snappylapy"
version = "0.0.1"
description = "Testing lib"
description = "A powerful and intuitive snapshot testing tool for pytest based on the Jest API."
authors = ["Martin Møldrup"]
readme = "README.md"
classifiers = [
Expand All @@ -18,11 +18,22 @@ classifiers = [
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"License :: OSI Approved :: MIT License",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
]
packages = [
{ include = "snappylapy" },
]
repository = "https://github.com/martinmoldrup/snappylapy"

keywords = [
"pytest",
"snapshot",
"testing",
"snapshot-testing",
]

[tool.poetry.urls]
"Bug Tracker" = "https://github.com/martinmoldrup/snappylapy/issues"

[tool.poetry.dependencies]
python = "^3.9"
Expand Down

0 comments on commit e2d7f74

Please sign in to comment.