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
|
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…
x
Reference in New Issue
Block a user