File tree Expand file tree Collapse file tree 1 file changed +21
-1
lines changed Expand file tree Collapse file tree 1 file changed +21
-1
lines changed Original file line number Diff line number Diff line change @@ -13,14 +13,34 @@ 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+ git clean -f -x -d
27+ && python generate.py --start 1 --stop 5 --page-size 2
28+ && unzip leetcode.apkg
29+ && sqlite3 collection.anki2 .schema
30+ && sqlite3 collection.anki2 .dump
31+ env :
32+ LEETCODE_SESSION_ID : ${{ secrets.LEETCODE_SESSION_ID }}
33+ - name : Test build Anki Deck (non-default output file)
34+ run : >
35+ git clean -f -x -d
36+ && python generate.py --stop 3 --output-file test.apkg
37+ && unzip test.apkg
38+ && sqlite3 collection.anki2 .schema
39+ && sqlite3 collection.anki2 .dump
40+ env :
41+ LEETCODE_SESSION_ID : ${{ secrets.LEETCODE_SESSION_ID }}
42+ - name : Test build Anki Deck with Amazon list id
43+ run : python generate.py --stop 10 --list-id 7p5x763
2444 env :
2545 LEETCODE_SESSION_ID : ${{ secrets.LEETCODE_SESSION_ID }}
2646 - name : Build Anki Deck
You can’t perform that action at this time.
0 commit comments