feat: add github actions
Some checks failed
Continuous Integration / Lint, Check & Test (push) Failing after 30s
Some checks failed
Continuous Integration / Lint, Check & Test (push) Failing after 30s
Signed-off-by: Konstantin Fickel <mail@konstantinfickel.de>
This commit is contained in:
parent
0c61067db0
commit
2d66eaef89
2 changed files with 44 additions and 1 deletions
43
.github/workflows/ci.yml
vendored
Normal file
43
.github/workflows/ci.yml
vendored
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
name: Continuous Integration
|
||||
|
||||
on:
|
||||
push:
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
build-and-lint:
|
||||
name: Lint, Check & Test
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Check out Repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install uv
|
||||
uses: astral-sh/setup-uv@v5
|
||||
with:
|
||||
enable-cache: true
|
||||
version: "0.7.14"
|
||||
|
||||
- name: Set up python
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version-file: "pyproject.toml"
|
||||
|
||||
- name: Install the project
|
||||
run: uv sync --locked --all-extras --dev
|
||||
|
||||
- name: Test with PyTest
|
||||
run: uv run pytest --junit-xml test-report.xml
|
||||
|
||||
- name: Report test results
|
||||
uses: dorny/test-reporter@v2
|
||||
if: ${{ !cancelled() }}
|
||||
with:
|
||||
name: PyTest Results
|
||||
path: test-report.xml
|
||||
reporter: java-junit
|
||||
|
||||
- name: Check with PyRight
|
||||
run: uv run pyright
|
||||
|
||||
|
|
@ -3,7 +3,7 @@ name = "streamer"
|
|||
version = "0.1.0"
|
||||
description = "Searching for tags in streams"
|
||||
readme = "README.md"
|
||||
requires-python = ">=3.12"
|
||||
requires-python = "3.12.11"
|
||||
dependencies = [
|
||||
"click>=8.2.1",
|
||||
"mistletoe>=1.4.0",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue