diff --git a/.github/workflows/board.yaml b/.github/workflows/board.yaml deleted file mode 100644 index 960713e9..00000000 --- a/.github/workflows/board.yaml +++ /dev/null @@ -1,27 +0,0 @@ -name: Project Board - -on: - issues: - types: - - opened - - labeled - - reopened - -jobs: - add: - name: Add Issue - runs-on: ubuntu-latest - permissions: - issues: write - steps: - - run: gh issue edit "$NUMBER" --add-label "$LABELS" - env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - GH_REPO: ${{ github.repository }} - NUMBER: ${{ github.event.issue.number }} - LABELS: sdk - - uses: actions/add-to-project@v1.0.2 - continue-on-error: true - with: - project-url: https://github.com/orgs/rstudio/projects/207 - github-token: ${{ secrets.CONNECT_ADD_TO_PROJECT_PAT }} diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml deleted file mode 100644 index 86b818d4..00000000 --- a/.github/workflows/ci.yaml +++ /dev/null @@ -1,101 +0,0 @@ -name: CI -on: - pull_request: - push: - branches: - - main -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true -jobs: - lint: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: astral-sh/setup-uv@v6 - - run: uv python install - - run: make dev - - run: make lint - - run: make fmt - - test: - runs-on: ubuntu-latest - strategy: - fail-fast: false - matrix: - python-version: - - "3.8" - - "3.9" - - "3.10" - - "3.11" - - "3.12" - - "3.13" - steps: - - uses: actions/checkout@v4 - - uses: astral-sh/setup-uv@v6 - - run: uv python install ${{ matrix.python-version }} - - run: make dev - - run: make test - - setup-integration-test: - runs-on: ubuntu-latest - outputs: - versions: ${{ steps.versions.outputs.versions }} - steps: - - uses: actions/checkout@v4 - - id: versions - working-directory: ./integration - # The `jq` command is "output compact, raw input, slurp, split on new lines, and remove the last element". This results in a JSON array of Connect versions (e.g., ["2025.01.0", "2024.12.0"]). - run: | - versions=$(make print-versions | jq -c -Rs 'split("\n") | .[:-1]') - echo "versions=$versions" >> "$GITHUB_OUTPUT" - - integration-test: - runs-on: ubuntu-latest - needs: setup-integration-test - strategy: - fail-fast: false - matrix: - CONNECT_VERSION: ${{ fromJson(needs.setup-integration-test.outputs.versions) }} - steps: - - uses: actions/checkout@v4 - - uses: docker/setup-buildx-action@v3 - - name: Write Posit Connect license to disk - run: echo "$CONNECT_LICENSE" > ./integration/license.lic - env: - CONNECT_LICENSE: ${{ secrets.CONNECT_LICENSE }} - - uses: astral-sh/setup-uv@v6 - - run: uv python install - - run: make -C ./integration ${{ matrix.CONNECT_VERSION }} - - uses: actions/upload-artifact@v4 - if: always() - with: - name: ${{ matrix.CONNECT_VERSION }} - Integration Test Report - path: integration/reports/*.xml - - integration-test-report: - needs: integration-test - runs-on: ubuntu-latest - permissions: - checks: write - pull-requests: write - if: always() - steps: - - uses: actions/download-artifact@v4 - with: - path: artifacts - - uses: EnricoMi/publish-unit-test-result-action@v2 - with: - check_name: integration-test-results - comment_mode: off - files: "artifacts/**/*.xml" - report_individual_runs: true - - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: astral-sh/setup-uv@v6 - - run: uv python install - - run: make dev - - run: make build diff --git a/.github/workflows/conventional-commits.yaml b/.github/workflows/conventional-commits.yaml deleted file mode 100644 index 53f39847..00000000 --- a/.github/workflows/conventional-commits.yaml +++ /dev/null @@ -1,46 +0,0 @@ -name: Conventional Commits -on: - pull_request: - types: - - opened - - edited - - synchronize -jobs: - default: - runs-on: ubuntu-latest - steps: - - uses: amannn/action-semantic-pull-request@v5 - id: lint - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - types: | - build - chore - ci - docs - feat - fix - perf - style - refactor - test - - uses: marocchino/sticky-pull-request-comment@v2 - if: always() && (steps.lint.outputs.error_message != null) - with: - header: lint-error - message: | - Hey there! 👋 - - We noticed that the title of your pull request doesn't follow the [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/) specification. To ensure consistency, we kindly ask you to adjust the title accordingly. - - Here are the details: - - ``` - ${{ steps.lint.outputs.error_message }} - ``` - - if: ${{ steps.lint.outputs.error_message == null }} - uses: marocchino/sticky-pull-request-comment@v2 - with: - header: lint-error - delete: true diff --git a/.github/workflows/coverage.yaml b/.github/workflows/coverage.yaml deleted file mode 100644 index 7430a1e1..00000000 --- a/.github/workflows/coverage.yaml +++ /dev/null @@ -1,21 +0,0 @@ -name: Coverage -on: - - pull_request -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true -jobs: - cov: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: astral-sh/setup-uv@v6 - - run: uv python install - - run: make dev - - run: make test - - run: make cov-xml - - if: ${{ ! github.event.pull_request.head.repo.fork }} - uses: orgoro/coverage@v3.2 - with: - coverageFile: coverage.xml - token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml deleted file mode 100644 index 0ec406d2..00000000 --- a/.github/workflows/release.yaml +++ /dev/null @@ -1,23 +0,0 @@ -name: Release -on: - push: - tags: - - "v*.*.*" -jobs: - default: - runs-on: ubuntu-latest - permissions: - id-token: write - steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - uses: astral-sh/setup-uv@v6 - - run: uv python install - - uses: actions/setup-node@v4 - with: - node-version: 22 - - run: make build - - run: make install - - id: release - uses: pypa/gh-action-pypi-publish@release/v1 diff --git a/.github/workflows/site.yaml b/.github/workflows/site.yaml deleted file mode 100644 index e91907ec..00000000 --- a/.github/workflows/site.yaml +++ /dev/null @@ -1,58 +0,0 @@ -name: Site - -on: - push: - tags: - - "v*.*.*" - pull_request: - -permissions: - id-token: write - pages: write - -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true - -jobs: - site: - if: github.event_name == 'push' - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - uses: astral-sh/setup-uv@v6 - - run: uv python install - - run: make build install - - uses: quarto-dev/quarto-actions/setup@v2 - - run: make docs - - uses: actions/configure-pages@v3 - - uses: actions/upload-pages-artifact@v3 - with: - path: "./docs/_site" - - uses: actions/deploy-pages@v4 - - preview: - if: github.event_name == 'pull_request' - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - uses: astral-sh/setup-uv@v6 - - run: uv python install - - uses: actions/setup-node@v4 - with: - node-version: 22 - - uses: quarto-dev/quarto-actions/setup@v2 - - run: make dev - - run: make docs - - id: preview - working-directory: docs - env: - NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} - run: | - preview_url=$(make deploy | jq '.deploy_url' | tail -n 1 | tr -d '"') - echo "# 🚀 Site Preview" >> $GITHUB_STEP_SUMMARY - echo "$preview_url" >> $GITHUB_STEP_SUMMARY diff --git a/.snyk b/.snyk new file mode 100644 index 00000000..fd6f4a91 --- /dev/null +++ b/.snyk @@ -0,0 +1,5 @@ +# Snyk (https://snyk.io) policy file +--- +exclude: + global: + - "test_*.py"