From 495cf4d3b233c9c680e16a89f365569e41194fea Mon Sep 17 00:00:00 2001 From: Igor Tavares Date: Tue, 9 Mar 2021 09:53:52 -0300 Subject: [PATCH] Add minimal tests to the GitHub workflow. Exporting region var env. update. update. --- .github/workflows/minimal-tests.yml | 40 +++++++++++++++++++++++++++ .github/workflows/static-checking.yml | 4 +-- 2 files changed, 42 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/minimal-tests.yml diff --git a/.github/workflows/minimal-tests.yml b/.github/workflows/minimal-tests.yml new file mode 100644 index 000000000..082c6ab8a --- /dev/null +++ b/.github/workflows/minimal-tests.yml @@ -0,0 +1,40 @@ +name: Minimal Tests + +on: + push: + branches: + - main + - main-governed-tables + pull_request: + branches: + - main + - main-governed-tables + +jobs: + Check: + + runs-on: ubuntu-latest + env: + AWS_DEFAULT_REGION: us-east-1 + strategy: + matrix: + python-version: [3.7] + + steps: + - uses: actions/checkout@v2 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v1 + with: + python-version: ${{ matrix.python-version }} + - name: Install Requirements + run: | + python -m pip install --upgrade pip + pip install -U -r requirements-dev.txt + - name: Test Metadata + run: pytest tests/test_metadata.py + - name: Test Session + run: pytest tests/test_session.py + - name: Test Utils + run: pytest tests/test_utils.py + - name: Test Moto + run: pytest -n 4 tests/test_moto.py diff --git a/.github/workflows/static-checking.yml b/.github/workflows/static-checking.yml index fafca0e93..ce22ffe06 100644 --- a/.github/workflows/static-checking.yml +++ b/.github/workflows/static-checking.yml @@ -16,7 +16,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: [3.7, 3.8, 3.9] + python-version: [3.7] steps: - uses: actions/checkout@v2 @@ -27,7 +27,7 @@ jobs: - name: Install Requirements run: | python -m pip install --upgrade pip - pip install -r requirements-dev.txt + pip install -U -r requirements-dev.txt - name: CloudFormation Lint - Base run: cfn-lint -t cloudformation/base.yaml - name: CloudFormation Lint - Databases