PGrabinski is testing GenAI Detection π #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
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.test" | |
tags: genai_env | |
load: true | |
cache-from: type=gha | |
cache-to: type=gha,mode=max | |
push: false | |
- 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 |