Skip to content

1st attempt at pr_workflow.yml #1

1st attempt at pr_workflow.yml

1st attempt at pr_workflow.yml #1

Workflow file for this run

name: Pull Request Workflow
on:
pull_request:
branches:
- main
types:
- opened
- synchronize
- reopened
jobs:
test-and-upload:

Check failure on line 13 in .github/workflows/pr_workflow.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/pr_workflow.yml

Invalid workflow file

You have an error in your yaml syntax on line 13
runs-on: [gpumode-nvidia-arc]
container:
image: nvidia/cuda:12.4.0-devel-ubuntu22.04
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.13'
# Install dependencies
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
# Run the Python script or tests
- name: Run Python Tasks
run: |
python discord-bot.py ${{ github.event.number }}-${{ github.run_id }}-${{ github.run_attempt }} > test.log
env:
DISCORD_TOKEN: ${{ secrets.DISCORD_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
# Upload artifacts
- name: Upload Artifacts
uses: actions/upload-artifact@v3
with:
name: test-results
path: test.log