From 0b2af0ab0ab9f935f9f84c207b39746dce89ee00 Mon Sep 17 00:00:00 2001 From: Emmanuelle Vargas-Gonzalez Date: Wed, 13 Jan 2021 23:56:42 -0500 Subject: [PATCH] update configs --- .github/workflows/python-ci-tests.yml | 24 ++++++++++++++++++++++++ .pre-commit-config.yaml | 2 +- .travis.yml | 7 ------- 3 files changed, 25 insertions(+), 8 deletions(-) delete mode 100644 .travis.yml diff --git a/.github/workflows/python-ci-tests.yml b/.github/workflows/python-ci-tests.yml index e69de29..9ef54a4 100644 --- a/.github/workflows/python-ci-tests.yml +++ b/.github/workflows/python-ci-tests.yml @@ -0,0 +1,24 @@ +# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions + +name: cti-documentation test harness +on: [push, pull_request] + +jobs: + build: + + runs-on: ubuntu-latest + + name: Python 3.x Build + steps: + - uses: actions/checkout@v2 + - name: Set up Python 3.x + uses: actions/setup-python@v2 + with: + python-version: '3.x' + - name: Install and update essential dependencies + run: | + pip install -U pip setuptools + pip install stix2-validator + - name: Validate Examples + run: | + ./validate-examples.sh diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 3958140..0ce9496 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -5,7 +5,7 @@ exclude: > )$ repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v1.2.1-1 + rev: v3.4.0 hooks: - id: trailing-whitespace - id: end-of-file-fixer diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 0b9176a..0000000 --- a/.travis.yml +++ /dev/null @@ -1,7 +0,0 @@ -language: python - -install: - - pip install stix2-validator - -script: - - ./validate-examples.sh