Skip to content

Commit 1a5d37e

Browse files
authored
Merge branch 'master' into reports
2 parents f09d947 + e10653c commit 1a5d37e

23 files changed

+1292
-731
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: 3 additions & 3 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:
@@ -18,6 +17,7 @@ jobs:
1817
- "--issues"
1918
- "--wikis"
2019
- "--contributors"
20+
- "--workflow_runs"
2121

2222
runs-on: ubuntu-latest
2323

@@ -36,7 +36,7 @@ jobs:
3636
run: pip install -r requirements.txt
3737

3838
- name: Create list.txt
39-
run: echo "moevm/github_repo_commitment_calc" > list.txt
39+
run: echo "thehighestmath/SummerPractice" > list.txt
4040

4141
- name: Run test
4242
run: |

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
1+
venv/
12
__pycache__
3+
list.txt
4+
tokens.txt
5+
out.csv
Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,41 @@
11
version: '3'
22

33
services:
4+
db:
5+
image: postgres:13
6+
container_name: forgejo_db
7+
environment:
8+
POSTGRES_USER: forgejo
9+
POSTGRES_PASSWORD: forgejo
10+
POSTGRES_DB: forgejo
11+
volumes:
12+
- ./postgres-data:/var/lib/postgresql/data
13+
restart: unless-stopped
14+
networks:
15+
- forgejo_network
16+
417
forgejo:
518
image: codeberg.org/forgejo/forgejo:1.18
619
container_name: forgejo
720
environment:
821
- USER_UID=1000
922
- USER_GID=1000
23+
- FORGEJO__database__DB_TYPE=postgres
24+
- FORGEJO__database__HOST=db:5432
25+
- FORGEJO__database__NAME=forgejo
26+
- FORGEJO__database__USER=forgejo
27+
- FORGEJO__database__PASSWD=forgejo
1028
volumes:
1129
- ./forgejo-data:/data
1230
ports:
1331
- "3000:3000"
1432
- "2222:22"
15-
restart: unless-stopped
33+
depends_on:
34+
- db
35+
restart: unless-stopped
36+
networks:
37+
- forgejo_network
38+
39+
networks:
40+
forgejo_network:
41+
driver: bridge

0 commit comments

Comments
 (0)