mirror of
https://github.com/agersant/polaris
synced 2024-09-20 13:41:54 +00:00
d01583b406
* add api parameter for thumbnail size * make max_dimension optinal in case of native resolution * add tests for thumbnail size * fix typo * fix thumbnail size tests * make unwrap more explicit * remove print statement * update workflows * reduce thumbnail variations * add removed token * Update coverage.yml * fix typo * hopefully prevent coverage timeout - split up thumnail tests - reduce threadcount used for test execution * get thread count using github actions specific step * use fixed thread count of 4 * run coverage tests in release mode * ignore large and native thumbnail_size tests in coverage
30 lines
775 B
YAML
30 lines
775 B
YAML
name: Build
|
|
|
|
on:
|
|
pull_request:
|
|
push:
|
|
|
|
jobs:
|
|
test:
|
|
name: Run Tests
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
matrix:
|
|
os: [ubuntu-latest, windows-latest]
|
|
features: [--no-default-features, --features bundle-sqlite, --features ui]
|
|
exclude:
|
|
- os: windows-latest
|
|
features: --no-default-features
|
|
|
|
steps:
|
|
- name: Install libsqlite3-dev
|
|
if: contains(matrix.os, 'ubuntu') && !contains(matrix.features, 'bundle-sqlite')
|
|
run: sudo apt-get update && sudo apt-get install libsqlite3-dev
|
|
- uses: actions/checkout@v2
|
|
- uses: actions-rs/toolchain@v1
|
|
with:
|
|
profile: minimal
|
|
- uses: actions-rs/cargo@v1
|
|
with:
|
|
command: test
|
|
args: --release ${{ matrix.features }}
|