From 2d66eaef89b95d6ebb1a70bbc848e6992a7996b7 Mon Sep 17 00:00:00 2001 From: Konstantin Fickel Date: Tue, 23 Sep 2025 09:56:52 +0200 Subject: [PATCH] feat: add github actions Signed-off-by: Konstantin Fickel --- .github/workflows/ci.yml | 43 ++++++++++++++++++++++++++++++++++++++++ pyproject.toml | 2 +- 2 files changed, 44 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..08c17ba --- /dev/null +++ b/.github/workflows/ci.yml @@ -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 + diff --git a/pyproject.toml b/pyproject.toml index f001bf9..ac68eb7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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",