-
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.
Merge pull request #1 from flare-research/dev-dependencies
fix(project): prepare for dockerization, fix linter issues, add actions
- Loading branch information
Showing
37 changed files
with
474 additions
and
469 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,59 @@ | ||
name: Build and Deploy | ||
|
||
on: | ||
push: | ||
# tags: ["v*.*.*"] # Match semantic versioning tags like v1.0.0 | ||
branches: ["main"] | ||
workflow_dispatch: # Allow manual triggering of the workflow | ||
|
||
env: | ||
REGISTRY: ghcr.io | ||
IMAGE_NAME: ${{ github.repository }} | ||
|
||
jobs: | ||
build-and-push: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
packages: write | ||
attestations: write | ||
id-token: write | ||
steps: | ||
# Checkout repository | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
# Log in to GHCR | ||
- name: Login to GitHub Container Registry | ||
uses: docker/login-action@v3 | ||
with: | ||
registry: ${{ env.REGISTRY }} | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
# Generate Docker metadata | ||
- name: Metadata for Docker | ||
id: meta | ||
uses: docker/metadata-action@v5 | ||
with: | ||
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} | ||
|
||
# Cache Docker layers to speed up builds | ||
- name: Cache Docker layers | ||
uses: actions/cache@v3 | ||
with: | ||
path: /tmp/.buildx-cache | ||
key: ${{ runner.os }}-docker-${{ github.ref }} | ||
restore-keys: | | ||
${{ runner.os }}-docker- | ||
# Build and push Docker image | ||
- name: Build and push Docker image | ||
uses: docker/build-push-action@v6 | ||
id: push | ||
with: | ||
context: . | ||
push: true | ||
load: true | ||
tags: ${{ steps.meta.outputs.tags }} | ||
labels: ${{ steps.meta.outputs.labels }} |
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,37 @@ | ||
name: Lint | ||
|
||
on: | ||
push: | ||
branches: ["main"] | ||
pull_request: | ||
branches: ["main"] | ||
|
||
jobs: | ||
lint: | ||
runs-on: "ubuntu-latest" | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
# Set up Python environment | ||
- name: Set up uv | ||
uses: astral-sh/setup-uv@v5 | ||
with: | ||
version: "latest" | ||
|
||
# Install dependencies | ||
- name: Install dependencies | ||
run: uv sync --frozen --all-extras | ||
|
||
# Format code with ruff | ||
- name: Format with ruff | ||
run: uv run ruff format --diff | ||
|
||
# Lint code with ruff | ||
- name: Lint with ruff | ||
run: uv run ruff check --diff | ||
continue-on-error: false | ||
|
||
# Type check with pyright | ||
- name: Type check with pyright | ||
run: uv run pyright |
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 |
---|---|---|
@@ -1 +1 @@ | ||
3.10 | ||
3.12 |
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
File renamed without changes.
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 @@ | ||
{ | ||
"aggregated_response": "Here's a combined response based on the majority of the models:\n\nHeat is emitted in a freshly painted room due to two primary reasons: evaporation of solvents and release of volatile organic compounds (VOCs) from the paint, and the exothermic chemical reactions that occur during the drying process.\n\nWhen paint is applied to a surface, it contains solvents and other chemicals that are volatile, meaning they can evaporate at room temperature. As the paint dries, these solvents and VOCs evaporate into the air, carrying heat with them. This process of evaporation is endothermic, meaning it absorbs heat from the surrounding environment, resulting in a cooler temperature in the room.\n\nAdditionally, the paint itself also emits heat as it dries due to the exothermic chemical reactions that occur during the drying process. These reactions involve the breakdown of the paint's components, releasing energy in the form of heat. This heat is then distributed throughout the room, contributing to the overall warmth", | ||
"responses": { | ||
"qwen/qwen-vl-plus:free": "Heat is emitted in a freshly painted room due to the evaporation of solvents and volatile organic compounds (VOCs) from the paint, which absorbs heat from the surrounding environment, and the chemical reactions that occur during the drying process, which release energy in the form of heat.", | ||
"sophosympatheia/rogue-rose-103b-v0.2:free": " Heat is emitted in a freshly painted room due to two primary reasons: evaporation of solvents and release of volatile organic compounds (VOCs) from the paint, and the exothermic chemical reactions that occur during the drying process.\n\n1. Evaporation of solvents and VOCs: When paint is applied to a surface, it contains solvents and other chemicals that are volatile, meaning they can evaporate at room temperature. As the paint dries, these solvents and VOCs evaporate into the air, carrying heat with them. This process of evaporation is endothermic, meaning it absorbs heat from the surrounding environment, resulting in a cooler temperature in the room.\n2. Exothermic chemical reactions: The paint itself also emits heat as it dries due to the exothermic chemical reactions that occur during", | ||
"meta-llama/llama-3.2-3b-instruct:free": "Heat is emitted in a freshly painted room because the paint contains volatile organic compounds (VOCs) that evaporate as the paint dries, absorbing heat from the surrounding environment, and the chemical reactions that occur during drying release energy in the form of heat." | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
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
File renamed without changes.
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
File renamed without changes.
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
File renamed without changes.
Oops, something went wrong.