Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 472fa88

Browse files
authoredJun 12, 2022
Merge 8270398 into 7d09c90
2 parents 7d09c90 + 8270398 commit 472fa88

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed
 

‎.github/workflows/build-deck.yml

+11-1
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,24 @@ jobs:
1313
python-version: 3.9
1414
- name: Install requirements
1515
run: pip install -r requirements.txt
16+
- name: Install sqlite
17+
run: sudo apt-get install sqlite3 unzip
1618
- name: Get current date
1719
id: date
1820
run: echo "::set-output name=date::$(date +'%Y-%m-%d_%H:%M:%S')"
1921
- name: Get current timestamp
2022
id: timestamp
2123
run: echo "::set-output name=timestamp::$(date +'%s')"
2224
- name: Test build Anki Deck
23-
run: python generate.py --stop 3
25+
run: >
26+
python generate.py --start 1 --stop 5 --page-size 2
27+
&& unzip leetcode.apkg
28+
&& sqlite3 collection.anki2 .schema
29+
&& sqlite3 collection.anki2 .dump
30+
env:
31+
LEETCODE_SESSION_ID: ${{ secrets.LEETCODE_SESSION_ID }}
32+
- name: Test build Anki Deck with Amazon list id
33+
run: python generate.py --stop 10 --list-id 7p5x763
2434
env:
2535
LEETCODE_SESSION_ID: ${{ secrets.LEETCODE_SESSION_ID }}
2636
- name: Build Anki Deck

0 commit comments

Comments
 (0)
Please sign in to comment.