MonkeyCanCode commented on code in PR #119: URL: https://github.com/apache/polaris-tools/pull/119#discussion_r2655051907
########## .github/workflows/mcp-server-nightly.yml: ########## @@ -0,0 +1,78 @@ +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# + +name: MCP Server Nightly Publish + +on: + schedule: + # Run every day at 2:00 AM UTC + - cron: '0 2 * * *' + workflow_dispatch: # Allow manual trigger. To manually trigger this workflow: + # 1. Go to Actions tab in GitHub + # 2. Select "MCP Server Nightly Publish" + # 3. Click "Run workflow" button + # 4. Select branch and click "Run workflow" + +jobs: + publish-nightly: + runs-on: ubuntu-latest + + steps: + - name: Checkout Polaris Tools project + uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5 + + - name: Set up Python + uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6 + with: + python-version: "3.12" Review Comment: So we only want to support 3.12? For https://github.com/apache/polaris/pull/3036/files, we have support for all versions of python from 3.10 to 3.13. ########## .github/workflows/mcp-server-nightly.yml: ########## @@ -0,0 +1,78 @@ +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# + +name: MCP Server Nightly Publish + +on: + schedule: + # Run every day at 2:00 AM UTC + - cron: '0 2 * * *' + workflow_dispatch: # Allow manual trigger. To manually trigger this workflow: + # 1. Go to Actions tab in GitHub + # 2. Select "MCP Server Nightly Publish" + # 3. Click "Run workflow" button + # 4. Select branch and click "Run workflow" + +jobs: + publish-nightly: + runs-on: ubuntu-latest + + steps: + - name: Checkout Polaris Tools project + uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5 + + - name: Set up Python + uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6 + with: + python-version: "3.12" + + - name: Install uv + run: | + curl -LsSf https://astral.sh/uv/install.sh | sh + echo "${HOME}/.local/bin" >> "${GITHUB_PATH}" + + - name: Update version for nightly build + working-directory: mcp-server + run: | + # Create a nightly version with date suffix (e.g., 0.9.0.dev20231215) + NIGHTLY_VERSION=$(grep '^version = ' pyproject.toml | sed 's/version = "\(.*\)"/\1/') Review Comment: Currently the version for mcp is not in-synced with Polaris. Should we match these or stick our this custom (or outdated) version? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
