Skip to content

Commit 7d9408a

Browse files
authored
Add minimal tests to the GitHub workflow. (#588)
Exporting region var env. update. update.
1 parent 35462d2 commit 7d9408a

File tree

2 files changed

+42
-2
lines changed

2 files changed

+42
-2
lines changed
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Minimal Tests
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- main-governed-tables
8+
pull_request:
9+
branches:
10+
- main
11+
- main-governed-tables
12+
13+
jobs:
14+
Check:
15+
16+
runs-on: ubuntu-latest
17+
env:
18+
AWS_DEFAULT_REGION: us-east-1
19+
strategy:
20+
matrix:
21+
python-version: [3.7]
22+
23+
steps:
24+
- uses: actions/checkout@v2
25+
- name: Set up Python ${{ matrix.python-version }}
26+
uses: actions/setup-python@v1
27+
with:
28+
python-version: ${{ matrix.python-version }}
29+
- name: Install Requirements
30+
run: |
31+
python -m pip install --upgrade pip
32+
pip install -U -r requirements-dev.txt
33+
- name: Test Metadata
34+
run: pytest tests/test_metadata.py
35+
- name: Test Session
36+
run: pytest tests/test_session.py
37+
- name: Test Utils
38+
run: pytest tests/test_utils.py
39+
- name: Test Moto
40+
run: pytest -n 4 tests/test_moto.py

.github/workflows/static-checking.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
runs-on: ubuntu-latest
1717
strategy:
1818
matrix:
19-
python-version: [3.7, 3.8, 3.9]
19+
python-version: [3.7]
2020

2121
steps:
2222
- uses: actions/checkout@v2
@@ -27,7 +27,7 @@ jobs:
2727
- name: Install Requirements
2828
run: |
2929
python -m pip install --upgrade pip
30-
pip install -r requirements-dev.txt
30+
pip install -U -r requirements-dev.txt
3131
- name: CloudFormation Lint - Base
3232
run: cfn-lint -t cloudformation/base.yaml
3333
- name: CloudFormation Lint - Databases

0 commit comments

Comments
 (0)