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:
jeffj6123 2021-01-07 09:17:01 -08:00 коммит произвёл GitHub
Родитель 7deb7a1bfb
Коммит 4239275770
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
2 изменённых файлов: 35 добавлений и 24 удалений

35
.github/workflows/test.yml поставляемый Normal file
Просмотреть файл

@ -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

Просмотреть файл

@ -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