Skip to content

Commit

Permalink
Merge 2750ecb into 7d09c90
Browse files Browse the repository at this point in the history
  • Loading branch information
fspv authored Jun 12, 2022
2 parents 7d09c90 + 2750ecb commit aae9319
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion .github/workflows/build-deck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,34 @@ jobs:
python-version: 3.9
- name: Install requirements
run: pip install -r requirements.txt
- name: Install sqlite
run: sudo apt-get install sqlite3 unzip
- name: Get current date
id: date
run: echo "::set-output name=date::$(date +'%Y-%m-%d_%H:%M:%S')"
- name: Get current timestamp
id: timestamp
run: echo "::set-output name=timestamp::$(date +'%s')"
- name: Test build Anki Deck
run: python generate.py --stop 3
run: >
git clean -f -x -d
&& python generate.py --start 1 --stop 5 --page-size 2
&& unzip leetcode.apkg
&& sqlite3 collection.anki2 .schema
&& sqlite3 collection.anki2 .dump
env:
LEETCODE_SESSION_ID: ${{ secrets.LEETCODE_SESSION_ID }}
- name: Test build Anki Deck (non-default output file)
run: >
git clean -f -x -d
&& python generate.py --stop 3 --output-file test.apkg
&& unzip test.apkg
&& sqlite3 collection.anki2 .schema
&& sqlite3 collection.anki2 .dump
env:
LEETCODE_SESSION_ID: ${{ secrets.LEETCODE_SESSION_ID }}
- name: Test build Anki Deck with Amazon list id
run: python generate.py --stop 10 --list-id 7p5x763
env:
LEETCODE_SESSION_ID: ${{ secrets.LEETCODE_SESSION_ID }}
- name: Build Anki Deck
Expand Down

0 comments on commit aae9319

Please sign in to comment.