Skip to content

Commit 5536e2d

Browse files
committed
Add github action
1 parent a2cd078 commit 5536e2d

3 files changed

Lines changed: 20 additions & 28 deletions

File tree

.github/workflows/ci.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: CI
2+
on:
3+
push:
4+
branches: [main]
5+
pull_request:
6+
branches: [main]
7+
jobs:
8+
pre-commit:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
- uses: pre-commit/action@v3.0.1
13+
test:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v4
17+
- uses: astral-sh/setup-uv@v4
18+
- run: uv sync --group test
19+
- run: uv run pytest tests/ --ignore=tests/real_plc_s1200/

.github/workflows/pre-commit.yml

Lines changed: 0 additions & 28 deletions
This file was deleted.

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
name="python-s7comm"
33
version="0.0.1"
44
requires-python = ">=3.12"
5+
license = "MIT"
56

67
[dependency-groups]
78
test = [

0 commit comments

Comments
 (0)