Add install test to github action with cron trigger.
The install test is only run when the cron event is the trigger.
This commit is contained in:
parent
fd2227b548
commit
745db24eaf
25
.github/workflows/tests.yaml
vendored
25
.github/workflows/tests.yaml
vendored
@ -1,9 +1,15 @@
|
||||
name: Pubs tests
|
||||
|
||||
on: [push, pull_request]
|
||||
on:
|
||||
push:
|
||||
pull_request:
|
||||
schedule:
|
||||
- cron: '0 8 * * *'
|
||||
|
||||
|
||||
jobs:
|
||||
unit-test:
|
||||
name: Run unit tests
|
||||
strategy:
|
||||
matrix:
|
||||
os: [macos-latest, ubuntu-latest]
|
||||
@ -35,3 +41,20 @@ jobs:
|
||||
env:
|
||||
PUBS_TESTS_MODE: COLLECT
|
||||
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…
x
Reference in New Issue
Block a user