-
Notifications
You must be signed in to change notification settings - Fork 213
GitHub Actions Updates
#2868
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
GitHub Actions Updates
#2868
Changes from 15 commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
0b228f5
feat: add devcontainer and update GitHub workflow for minimal import β¦
jacobwoffenden 8e6191a
fix: correct job name in minimal import workflow
jacobwoffenden a143644
refactor: update lint workflow for consistency and clarity
jacobwoffenden 522aac2
feat: add dependency review workflow for pull requests
jacobwoffenden 8e6729d
feat: add CodeQL analysis workflow for enhanced security checks
jacobwoffenden 3413172
refactor: update mypy workflow for clarity and Python version upgrade
jacobwoffenden 8c4f561
feat: update workflows for CodeQL analysis and PyPI release, add Duckβ¦
jacobwoffenden 8b31227
feat: add Pytest Postgres workflow for testing with PostgreSQL
jacobwoffenden f7bf614
feat: add Pytest workflows for Spark and SQLite testing
jacobwoffenden 1dc6c6b
feat: add Dependabot configuration and new workflows for demo exampleβ¦
jacobwoffenden ae8157e
feat: update PyPI release workflow permissions and configuration
jacobwoffenden a50c91e
feat: refactor documentation workflow for clarity and updates
jacobwoffenden 78be836
feat: update documentation workflow permissions and structure
jacobwoffenden 17dafef
fix: ensure newline at end of file in documentation workflow
jacobwoffenden 34c1d0b
fix: ensure newline at end of file in pytest-sqlite workflow
jacobwoffenden 2577142
Delete .devcontainer/devcontainer-lock.json
jacobwoffenden 7e0d812
Delete .devcontainer directory
jacobwoffenden 65c524b
Removed self trigger
jacobwoffenden 6b41085
Remove devcontainer ecosystem from Dependabot
jacobwoffenden 31b546a
Updating as per @RobinL's suggestion
jacobwoffenden File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| { | ||
| "features": { | ||
| "ghcr.io/ministryofjustice/devcontainer-feature/astral:": { | ||
| "version": "1.0.0", | ||
| "resolved": "ghcr.io/ministryofjustice/devcontainer-feature/astral@sha256:a6df118c6475e79fe15e63b815a5df591a24b0d25517ea941114cb6bee1af9a8", | ||
| "integrity": "sha256:a6df118c6475e79fe15e63b815a5df591a24b0d25517ea941114cb6bee1af9a8" | ||
| } | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| { | ||
| "name": "splink", | ||
| "image": "ghcr.io/ministryofjustice/devcontainer-base:latest", | ||
| "features": { | ||
| "ghcr.io/ministryofjustice/devcontainer-feature/astral:": {} | ||
| }, | ||
| "postCreateCommand": "uv sync --frozen", | ||
| "customizations": { | ||
| "vscode": { | ||
| "settings": { | ||
| "python.defaultInterpreterPath": "${workspaceFolder}/.venv/bin/python", | ||
| "python.terminal.activateEnvInCurrentTerminal": true, | ||
| "python.venvFolders": ["${workspaceFolder}/.venv"] | ||
| } | ||
| } | ||
| } | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| --- | ||
| version: 2 | ||
|
|
||
| updates: | ||
| - package-ecosystem: "devcontainers" | ||
jacobwoffenden marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| commit-message: | ||
| prefix: ":dependabot: devcontainers" | ||
| include: "scope" | ||
| cooldown: | ||
| default-days: 7 | ||
| directory: "/" | ||
| schedule: | ||
| interval: "daily" | ||
| - package-ecosystem: "github-actions" | ||
| commit-message: | ||
| prefix: ":dependabot: github-actions" | ||
| include: "scope" | ||
| cooldown: | ||
| default-days: 7 | ||
| directory: "/" | ||
| schedule: | ||
| interval: "daily" | ||
| - package-ecosystem: "uv" | ||
| commit-message: | ||
| prefix: ":dependabot: uv" | ||
| include: "scope" | ||
| cooldown: | ||
| default-days: 7 | ||
| directory: "/" | ||
| schedule: | ||
| interval: "daily" | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,49 @@ | ||
| name: Check minimal import | ||
|
|
||
| on: | ||
| pull_request: | ||
| branches: | ||
| - master | ||
| - "**dev" | ||
| paths: | ||
| - ".github/workflows/check-minimal-import.yml" | ||
| - "splink/**" | ||
| - "pyproject.toml" | ||
| - "uv.lock" | ||
|
|
||
| permissions: {} | ||
|
|
||
| jobs: | ||
| test: | ||
| name: Check minimal import | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| contents: read | ||
| steps: | ||
| - name: Checkout | ||
| id: checkout | ||
| uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 | ||
| with: | ||
| persist-credentials: false | ||
|
|
||
| - name: Setup uv (without cache) | ||
| id: setup_uv | ||
| uses: astral-sh/setup-uv@681c641aba71e4a1c380be3ab5e12ad51f415867 # v7.1.6 | ||
| with: | ||
| enable-cache: false | ||
|
|
||
| - name: Install Python 3.12 | ||
| id: install_python312 | ||
| run: uv python install 3.12 | ||
|
|
||
| - name: Install dependencies | ||
| id: install_dependencies | ||
| run: uv sync --python 3.12 --only-group core | ||
|
|
||
| - name: Check Splink imports | ||
| id: check_splink_imports | ||
| run: uv run --only-group core python -c "import splink" | ||
|
|
||
| - name: Check dependencies installed | ||
| id: check_dependencies_installed | ||
| run: uv pip list |
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,48 @@ | ||
| name: CodeQL analysis | ||
|
|
||
| on: | ||
| pull_request: | ||
| branches: | ||
| - master | ||
| - "**dev" | ||
| push: | ||
| branches: | ||
| - master | ||
|
|
||
| permissions: {} | ||
|
|
||
| jobs: | ||
| codeql-analysis: | ||
| name: CodeQL analysis | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| contents: read | ||
| security-events: write | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| language: | ||
| - actions | ||
| - python | ||
| steps: | ||
| - name: Checkout | ||
| id: checkout | ||
| uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 | ||
| with: | ||
| persist-credentials: false | ||
|
|
||
| - name: Initialise CodeQL | ||
| id: init_codeql | ||
| uses: github/codeql-action/init@5d4e8d1aca955e8d8589aabd499c5cae939e33c7 # v4.31.9 | ||
| with: | ||
| languages: ${{ matrix.language }} | ||
|
|
||
| - name: CodeQL autobuild | ||
| id: codeql_autobuild | ||
| uses: github/codeql-action/autobuild@5d4e8d1aca955e8d8589aabd499c5cae939e33c7 # v4.31.9 | ||
|
|
||
| - name: CodeQL analysis | ||
| id: codeql_analysis | ||
| uses: github/codeql-action/analyze@5d4e8d1aca955e8d8589aabd499c5cae939e33c7 # v4.31.9 | ||
| with: | ||
| category: "language:${{ matrix.language }}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.