-
Notifications
You must be signed in to change notification settings - Fork 3
46 lines (39 loc) · 1.07 KB
/
pr_workflow.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: Pull Request Workflow
on:
pull_request:
branches:
- main
types:
- opened
- synchronize
- reopened
jobs:
test-and-upload:
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