diff --git a/.github/workflows/github-app.yml b/.github/workflows/github-app.yml new file mode 100644 index 0000000..e521ff1 --- /dev/null +++ b/.github/workflows/github-app.yml @@ -0,0 +1,20 @@ +name: Test GitHub App Token + +on: + workflow_dispatch: + +jobs: + test-app: + runs-on: ubuntu-latest + steps: + - name: Generate GitHub App token + id: generate_token + uses: tibdex/github-app-token@v2 + with: + app_id: ${{ secrets.APP_ID }} + private_key: ${{ secrets.APP_PRIVATE_KEY }} + + - name: Print token prefix + run: | + echo "Token starts with:" + echo "${{ steps.generate_token.outputs.token }}" | cut -c1-30 diff --git a/.github/workflows/ruff.yml b/.github/workflows/ruff.yml new file mode 100644 index 0000000..4d32593 --- /dev/null +++ b/.github/workflows/ruff.yml @@ -0,0 +1,41 @@ +name: Ruff Lint & Format + +on: + pull_request: + push: + branches: [develop, main] + +jobs: + ruff: + runs-on: ubuntu-latest + + strategy: + matrix: + python-version: ["3.11"] + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + # Remove caching for now if no requirements.txt or pyproject.toml + # cache: 'pip' + + - name: Install Ruff (pinned version) + run: | + python -m pip install --upgrade pip + pip install "ruff==0.6.2" + + - name: Run Ruff lint check + run: | + echo "Running Ruff lint..." + ruff check . || (echo "::error::Ruff linting failed. Run 'ruff check --fix .' locally to fix issues." && exit 1) + + - name: Verify Ruff formatting + run: | + echo "Verifying Ruff formatting..." + ruff format --check . || (echo "::error::Formatting issues detected. Run 'ruff format .' locally to fix them." && exit 1) + diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..9959833 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,9 @@ +[project] +name = "ros-mcp-client" +version = "0.1.0" +requires-python = ">=3.10" + +[build-system] +requires = ["setuptools"] +build-backend = "setuptools.build_meta" +