Skip to content

Commit be60963

Browse files
f
1 parent fadd65e commit be60963

File tree

2 files changed

+27
-23
lines changed

2 files changed

+27
-23
lines changed

.github/workflows/large-tests.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Large Tests
2+
3+
on:
4+
push:
5+
branches: [ "master" ]
6+
7+
jobs:
8+
token-usage-unit_test:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
13+
- name: Cache pip
14+
uses: actions/cache@v3
15+
with:
16+
path: ~/.cache/pip
17+
key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }}
18+
restore-keys: |
19+
${{ runner.os }}-pip-
20+
21+
- name: Install dependencies
22+
run: pip install -r requirements.txt
23+
24+
- name: Run test
25+
run: python3 test_token_usage.py --tt1 ${{ secrets.TEST_TOKEN_GITHUB }} --tt2 ${{ secrets.SECOND_TEST_TOKEN_GITHUB }} --repo moevm/github_repo_commitment_calc --out out.csv
Lines changed: 2 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Tests
1+
name: Smoke Tests
22

33
on:
44
push:
@@ -7,7 +7,6 @@ on:
77
branches: [ "master" ]
88

99
jobs:
10-
1110
smoke-test:
1211
strategy:
1312
matrix:
@@ -36,7 +35,7 @@ jobs:
3635
run: pip install -r requirements.txt
3736

3837
- name: Create list.txt
39-
run: echo "moevm/github_repo_commitment_calc" > list.txt
38+
run: echo "thehighestmath/SummerPractice" > list.txt
4039

4140
- name: Run test
4241
run: |
@@ -51,23 +50,3 @@ jobs:
5150

5251
- name: Show out.csv
5352
run: cat out.csv
54-
55-
token-usage-unit_test:
56-
57-
runs-on: ubuntu-latest
58-
steps:
59-
- uses: actions/checkout@v4
60-
61-
- name: Cache pip
62-
uses: actions/cache@v3
63-
with:
64-
path: ~/.cache/pip
65-
key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }}
66-
restore-keys: |
67-
${{ runner.os }}-pip-
68-
69-
- name: Install dependencies
70-
run: pip install -r requirements.txt
71-
72-
- name: Run test
73-
run: python3 test_token_usage.py --tt1 ${{ secrets.TEST_TOKEN_GITHUB }} --tt2 ${{ secrets.SECOND_TEST_TOKEN_GITHUB }} --repo moevm/github_repo_commitment_calc --out out.csv

0 commit comments

Comments
 (0)