Add install test to github action with cron trigger.

The install test is only run when the cron event is the trigger.
main
Olivier Mangin 4 years ago
parent fd2227b548
commit 745db24eaf
No known key found for this signature in database
GPG Key ID: D72FEC1C3120A884

@ -1,9 +1,15 @@
name: Pubs tests name: Pubs tests
on: [push, pull_request] on:
push:
pull_request:
schedule:
- cron: '0 8 * * *'
jobs: jobs:
unit-test: unit-test:
name: Run unit tests
strategy: strategy:
matrix: matrix:
os: [macos-latest, ubuntu-latest] os: [macos-latest, ubuntu-latest]
@ -35,3 +41,20 @@ jobs:
env: env:
PUBS_TESTS_MODE: COLLECT PUBS_TESTS_MODE: COLLECT
run: pytest run: pytest
install-test:
name: Test installation
strategy:
matrix:
os: [macos-latest, ubuntu-latest]
runs-on: ${{ matrix.os }}
if: github.event_name == 'cron'
steps:
- uses: actions/setup-python@v2
- name: install test
run: |
pip install -U pip
pip install pubs
pubs --help
pip uninstall -y pubs

Loading…
Cancel
Save