-
Notifications
You must be signed in to change notification settings - Fork 2
113 lines (95 loc) · 2.86 KB
/
temp.yml
File metadata and controls
113 lines (95 loc) · 2.86 KB
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
name: Temp Manual Scrape & Build Leaderboard
on:
workflow_dispatch:
env:
GIT_USERNAME: ${{ secrets.GIT_USERNAME }}
GIT_PASSWORD: ${{ secrets.GIT_PASSWORD }}
GFG_USERNAME: ${{ secrets.GFG_USERNAME }}
GFG_PASSWORD: ${{ secrets.GFG_PASSWORD }}
DB_PASSWORD: ${{ secrets.DB_PASSWORD }}
CODECHEF_CLIENT_ID: ${{ secrets.CODECHEF_CLIENT_ID }}
CODECHEF_CLIENT_SECRET: ${{ secrets.CODECHEF_CLIENT_SECRET }}
CODEFORCES_KEY: ${{ secrets.CODEFORCES_KEY }}
CODEFORCES_SECRET: ${{ secrets.CODEFORCES_SECRET }}
jobs:
batch2:
runs-on: ubuntu-latest
strategy:
matrix:
job: [codechef, codeforces, geeksforgeeks, hackerrank, leetcode]
steps:
- name: Checkout repository
uses: actions/checkout@v4.1.1
with:
ref: ${{ github.ref }}
- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Scrape and Evaluate Batch 2
run: |
python main.py --batch 2 --scrape ${{ matrix.job }}
batch2-evaluate:
runs-on: ubuntu-latest
needs: batch2
steps:
- name: Checkout repository
uses: actions/checkout@v4.1.1
with:
ref: ${{ github.ref }}
- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Evaluate Batch 2
run: |
python main.py --batch 2 --evaluate
batch3:
runs-on: ubuntu-latest
needs: batch2
strategy:
matrix:
job: [codechef, codeforces, geeksforgeeks, hackerrank, leetcode]
steps:
- name: Checkout repository
uses: actions/checkout@v4.1.1
with:
ref: ${{ github.ref }}
- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Scrape and Evaluate Batch 3
run: |
python main.py --batch 3 --scrape ${{ matrix.job }}
batch3-evaluate:
runs-on: ubuntu-latest
needs: batch3
steps:
- name: Checkout repository
uses: actions/checkout@v4.1.1
with:
ref: ${{ github.ref }}
- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Evaluate Batch 3
run: |
python main.py --batch 3 --evaluate