-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add github workflows and deployment files
- Loading branch information
1 parent
9aaebba
commit d5fa7cc
Showing
17 changed files
with
578 additions
and
18 deletions.
There are no files selected for viewing
This file contains 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,35 @@ | ||
--- | ||
name: Bug report | ||
about: Create a report to help us improve | ||
title: 'Bug:' | ||
labels: bug | ||
assignees: '' | ||
--- | ||
|
||
**Describe the bug** | ||
Provide a clear and concise description of the bug. | ||
|
||
**How to reproduce** | ||
Include source code: | ||
|
||
```python | ||
from weatherman.app import app | ||
... | ||
``` | ||
|
||
And/Or steps to reproduce the behavior: | ||
|
||
1. ... | ||
|
||
**Expected behavior** | ||
Explain what you expected to happen clearly and concisely. | ||
|
||
**Observed behavior** | ||
Describe what is actually happening clearly and concisely. | ||
|
||
**Screenshots** | ||
If applicable, attach screenshots to help illustrate the problem. | ||
|
||
|
||
**Additional context** | ||
Provide any other relevant context or information about the problem here. |
This file contains 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,8 @@ | ||
blank_issues_enabled: true | ||
|
||
contact_links: | ||
- name: Security Contact | ||
about: Please report security vulnerabilities to [email protected] | ||
- name: Question or Problem | ||
about: Ask a question or ask about a problem in GitHub Discussions. | ||
url: https://github.com/airtai/weatherman/discussions/categories/questions |
This file contains 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,29 @@ | ||
--- | ||
name: Feature Request | ||
about: Suggest an idea for this project | ||
title: 'Feature:' | ||
labels: enhancement | ||
assignees: '' | ||
--- | ||
|
||
To suggest an idea or inquire about a new Message Broker supporting feature or any other enhancement, please follow this template: | ||
|
||
**Is your feature request related to a problem? Please describe.** | ||
Provide a clear and concise description of the problem you've encountered. For example: "I'm always frustrated when..." | ||
|
||
**Describe the solution you'd like** | ||
Clearly and concisely describe the desired outcome or solution. | ||
|
||
**Feature code example** | ||
To help others understand the proposed feature, illustrate it with a **weatherman** code example: | ||
|
||
```python | ||
from weatherman.app import app | ||
... | ||
``` | ||
|
||
**Describe alternatives you've considered** | ||
Provide a clear and concise description of any alternative solutions or features you've thought about. | ||
|
||
**Additional context** | ||
Include any other relevant context or screenshots related to the feature request. |
This file contains 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,26 @@ | ||
# Description | ||
|
||
Please include a summary of the change and specify which issue is being addressed. Additionally, provide relevant motivation and context. | ||
|
||
Fixes # (issue number) | ||
|
||
## Type of change | ||
|
||
Please delete options that are not relevant. | ||
|
||
- [ ] Documentation (typos, code examples, or any documentation updates) | ||
- [ ] Bug fix (a non-breaking change that resolves an issue) | ||
- [ ] New feature (a non-breaking change that adds functionality) | ||
- [ ] Breaking change (a fix or feature that would disrupt existing functionality) | ||
- [ ] This change requires a documentation update | ||
|
||
## Checklist | ||
|
||
- [ ] My code adheres to the style guidelines of this project (`scripts/lint.sh` shows no errors) | ||
- [ ] I have conducted a self-review of my own code | ||
- [ ] I have made the necessary changes to the documentation | ||
- [ ] My changes do not generate any new warnings | ||
- [ ] I have added tests to validate the effectiveness of my fix or the functionality of my new feature | ||
- [ ] Both new and existing unit tests pass successfully on my local environment by running `scripts/test-cov.sh` | ||
- [ ] I have ensured that static analysis tests are passing by running `scripts/static-anaylysis.sh` | ||
- [ ] I have included code examples to illustrate the modifications |
This file contains 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 @@ | ||
# To get started with Dependabot version updates, you'll need to specify which | ||
# package ecosystems to update and where the package manifests are located. | ||
# Please see the documentation for all configuration options: | ||
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates | ||
|
||
version: 2 | ||
updates: | ||
# GitHub Actions | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "weekly" | ||
# Python | ||
- package-ecosystem: "pip" # See documentation for possible values | ||
directory: "/" # Location of package manifests | ||
schedule: | ||
interval: "weekly" |
This file contains 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,83 @@ | ||
# For most projects, this workflow file will not need changing; you simply need | ||
# to commit it to your repository. | ||
# | ||
# You may wish to alter this file to override the set of languages analyzed, | ||
# or to provide custom queries or build logic. | ||
# | ||
# ******** NOTE ******** | ||
# We have attempted to detect the languages in your repository. Please check | ||
# the `language` matrix defined below to confirm you have the correct set of | ||
# supported CodeQL languages. | ||
# | ||
name: "CodeQL" | ||
|
||
on: | ||
push: | ||
branches: [ "main"] | ||
pull_request: | ||
# The branches below must be a subset of the branches above | ||
branches: [ "main" ] | ||
schedule: | ||
- cron: '39 20 * * 0' | ||
|
||
jobs: | ||
analyze: | ||
if: github.event.pull_request.draft == false | ||
name: Analyze | ||
# Runner size impacts CodeQL analysis time. To learn more, please see: | ||
# - https://gh.io/recommended-hardware-resources-for-running-codeql | ||
# - https://gh.io/supported-runners-and-hardware-resources | ||
# - https://gh.io/using-larger-runners | ||
# Consider using larger runners for possible analysis time improvements. | ||
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }} | ||
timeout-minutes: ${{ (matrix.language == 'swift' && 120) || 360 }} | ||
permissions: | ||
actions: read | ||
contents: read | ||
security-events: write | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
language: [ 'python' ] | ||
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby', 'swift' ] | ||
# Use only 'java' to analyze code written in Java, Kotlin or both | ||
# Use only 'javascript' to analyze code written in JavaScript, TypeScript or both | ||
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
# Initializes the CodeQL tools for scanning. | ||
- name: Initialize CodeQL | ||
uses: github/codeql-action/init@v3 # nosemgrep | ||
with: | ||
languages: ${{ matrix.language }} | ||
# If you wish to specify custom queries, you can do so here or in a config file. | ||
# By default, queries listed here will override any specified in a config file. | ||
# Prefix the list here with "+" to use these queries and those in the config file. | ||
|
||
# For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs | ||
# queries: security-extended,security-and-quality | ||
|
||
|
||
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift). | ||
# If this step fails, then you should remove it and run the build manually (see below) | ||
- name: Autobuild | ||
uses: github/codeql-action/autobuild@v3 # nosemgrep | ||
|
||
# ℹ️ Command-line programs to run using the OS shell. | ||
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun | ||
|
||
# If the Autobuild fails above, remove it and uncomment the following three lines. | ||
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance. | ||
|
||
# - run: | | ||
# echo "Run, Build Application using script" | ||
# ./location_of_script_within_repo/buildscript.sh | ||
|
||
- name: Perform CodeQL Analysis | ||
uses: github/codeql-action/analyze@v3 # nosemgrep | ||
with: | ||
category: "/language:${{matrix.language}}" |
This file contains 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,21 @@ | ||
# Dependency Review Action | ||
# | ||
# This Action will scan dependency manifest files that change as part of a Pull Request, surfacing known-vulnerable versions of the packages declared or updated in the PR. Once installed, if the workflow run is marked as required, PRs introducing known-vulnerable packages will be blocked from merging. | ||
# | ||
# Source repository: https://github.com/actions/dependency-review-action | ||
# Public documentation: https://docs.github.com/en/code-security/supply-chain-security/understanding-your-software-supply-chain/about-dependency-review#dependency-review-enforcement | ||
name: 'Dependency Review' | ||
on: [pull_request] | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
dependency-review: | ||
if: github.event.pull_request.draft == false | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: 'Checkout Repository' | ||
uses: actions/checkout@v4 | ||
- name: 'Dependency Review' | ||
uses: actions/dependency-review-action@v4 |
This file contains 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,23 @@ | ||
name: Cleanup Untagged Images | ||
|
||
on: | ||
# every sunday at 00:00 | ||
schedule: | ||
- cron: "0 0 * * SUN" | ||
# or manually | ||
workflow_dispatch: | ||
|
||
jobs: | ||
delete-untagged-images: | ||
name: Delete Untagged Images | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: bots-house/[email protected] # nosemgrep: yaml.github-actions.security.third-party-action-not-pinned-to-commit-sha.third-party-action-not-pinned-to-commit-sha | ||
with: | ||
# NOTE: at now only orgs is supported | ||
owner: airtai | ||
name: weatherman | ||
|
||
token: ${{ secrets.GITHUB_TOKEN }} | ||
# Keep latest N untagged images | ||
untagged-keep-latest: 1 |
This file contains 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,15 @@ | ||
name: "Check Branch" | ||
|
||
on: | ||
pull_request: | ||
merge_group: | ||
|
||
jobs: | ||
check_branch: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check branch | ||
if: github.base_ref == 'main' && github.head_ref != 'dev' | ||
run: | | ||
echo "ERROR: You can only merge to main from dev." | ||
exit 1 |
Oops, something went wrong.