forked from kovidgoyal/calibre
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
25 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,72 +1,27 @@ | ||
name: CI | ||
on: [push, pull_request] | ||
permissions: | ||
contents: read # to fetch code (actions/checkout) | ||
name: Pack Patch | ||
|
||
jobs: | ||
test: | ||
name: Test on ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
# windows is disabled because webenging is crashing when compiling rapydscript in CI, try re-enabling after next Qt update | ||
os: [ubuntu-latest, macos-latest] | ||
steps: | ||
- name: Checkout source code | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 10 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: 3.8 | ||
|
||
- name: Install calibre dependencies | ||
run: | ||
python setup/unix-ci.py install | ||
|
||
- name: Bootstrap calibre | ||
run: | ||
python setup/unix-ci.py bootstrap | ||
|
||
- name: Test calibre | ||
env: | ||
PYTHONWARNINGS: error | ||
CALIBRE_SHOW_DEPRECATION_WARNINGS: 1 | ||
run: | ||
python setup/unix-ci.py test | ||
on: | ||
push: | ||
branches: ['main'] | ||
|
||
archtest: | ||
name: Test on Arch | ||
runs-on: ubuntu-latest | ||
container: | ||
image: 'archlinux/archlinux:latest' | ||
env: | ||
CI: 'true' | ||
steps: | ||
- name: Setup container | ||
run: | | ||
pacman -Syu --noconfirm | ||
pacman -S --noconfirm tar | ||
- name: Checkout source code | ||
uses: actions/checkout@master | ||
with: | ||
fetch-depth: 10 | ||
|
||
- name: Install calibre dependencies | ||
run: setup/arch-ci.sh | ||
|
||
- name: Bootstrap calibre | ||
run: runuser -u ci -- python setup.py bootstrap --ephemeral --debug --sanitize | ||
|
||
- name: Test calibre | ||
env: | ||
PYTHONWARNINGS: error | ||
CALIBRE_SHOW_DEPRECATION_WARNINGS: 1 | ||
run: | | ||
set -xe | ||
runuser -u ci -- python setup.py test --under-sanitize | ||
echo "Running test_rs" | ||
runuser -u ci -- python setup.py test_rs | ||
jobs: | ||
pack: | ||
runs-on: windows- | ||
|
||
steps: | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 10 | ||
|
||
- name: Run Packer | ||
run: | | ||
cd patch | ||
start patch.bat | ||
- name: Upload Artifacts | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: calibre-patch | ||
path: calibre.7z |