switch to github actions over travis (#229)
* added github actions * switched to force reinstall * switched to force reinstall * fixed pip formatting * changed the verify script called * check failure run * removed error * removed travis and added more parts to the test.yml
This commit is contained in:
Родитель
7deb7a1bfb
Коммит
4239275770
|
@ -0,0 +1,35 @@
|
||||||
|
|
||||||
|
name: SFCTL
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
pull_request:
|
||||||
|
schedule:
|
||||||
|
- cron: 0 0 * * * # daily
|
||||||
|
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
python-version: [3.6, 3.7, 3.8]
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: Set up Python ${{ matrix.python-version }}
|
||||||
|
uses: actions/setup-python@v2
|
||||||
|
with:
|
||||||
|
python-version: ${{ matrix.python-version }}
|
||||||
|
- name: Install dependencies
|
||||||
|
run: |
|
||||||
|
python -m pip install --upgrade pip
|
||||||
|
pip install --force-reinstall -e ./src
|
||||||
|
pip install --force-reinstall -r requirements.txt
|
||||||
|
- name: Pre Test configuration
|
||||||
|
run: |
|
||||||
|
python scripts/check_and_use_custom_sdk.py
|
||||||
|
sfctl settings telemetry set-telemetry --off
|
||||||
|
- name: test
|
||||||
|
run: |
|
||||||
|
scripts/verify.sh local
|
24
.travis.yml
24
.travis.yml
|
@ -1,24 +0,0 @@
|
||||||
language: python
|
|
||||||
python:
|
|
||||||
- 3.6
|
|
||||||
- 3.7
|
|
||||||
- 3.8
|
|
||||||
|
|
||||||
git:
|
|
||||||
depth: 3
|
|
||||||
install:
|
|
||||||
- pip install --ignore-installed -e ./src
|
|
||||||
- pip install --ignore-installed -r requirements.txt
|
|
||||||
before_script:
|
|
||||||
- python scripts/check_and_use_custom_sdk.py
|
|
||||||
- sfctl settings telemetry set-telemetry --off
|
|
||||||
script:
|
|
||||||
- scripts/verify.sh test
|
|
||||||
- scripts/verify.sh lint
|
|
||||||
after_success:
|
|
||||||
- coveralls
|
|
||||||
branches:
|
|
||||||
only:
|
|
||||||
- master
|
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче