Skip to content

PGrabinski is testing GenAI Detection πŸš€ #9

PGrabinski is testing GenAI Detection πŸš€

PGrabinski is testing GenAI Detection πŸš€ #9

name: GenAI Detection
run-name: ${{ github.actor }} is testing GenAI Detection πŸš€
on: [push]
jobs:
Test-GenAI-Detection:
runs-on: ubuntu-latest
steps:
- run: echo "πŸŽ‰ The job was automatically triggered by a ${{ github.event_name }} event."
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!"
- run: echo "πŸ”Ž The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
- name: Check out repository code
uses: actions/checkout@v4
- uses: docker/setup-buildx-action@v2
- uses: docker/build-push-action@v4
with:
context: .
file: "Dockerfile"
tags: genai_env
load: true
cache-from: type=gha
cache-to: type=gha,mode=max
push: false
- name: Run Poetry Install
uses: addnab/docker-run-action@v3
with:
image: genai_env:latest
run: poetry install --all-optional-groups
- name: Run Pytest
uses: addnab/docker-run-action@v3
with:
image: genai_env:latest
run: poetry run pytest
# - run: echo "πŸ’‘ The ${{ github.repository }} repository has been cloned to the runner."
# - run: echo "πŸ–₯️ The workflow is now ready to test your code on the runner."
# - name: Build the Docker image
# run: docker build . --tag genai_env
# - name: Run Docker container
# run: docker run -v ${{ inputs.path }}:/src genai_env
# - run: pip install -r requirements.txt
# - run: pytest