From 42392757707bbc9cf1fc991f32df079f7d3bf808 Mon Sep 17 00:00:00 2001 From: jeffj6123 Date: Thu, 7 Jan 2021 09:17:01 -0800 Subject: [PATCH] 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 --- .github/workflows/test.yml | 35 +++++++++++++++++++++++++++++++++++ .travis.yml | 24 ------------------------ 2 files changed, 35 insertions(+), 24 deletions(-) create mode 100644 .github/workflows/test.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..ea95954 --- /dev/null +++ b/.github/workflows/test.yml @@ -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 \ No newline at end of file diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 97735d9..0000000 --- a/.travis.yml +++ /dev/null @@ -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 - -