Skip to content

More build tests #31

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 12, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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