-
-
Notifications
You must be signed in to change notification settings - Fork 4
96 lines (81 loc) · 2.72 KB
/
ci.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
name: ci
on:
push:
branches:
- master
paths-ignore:
- "**.md"
- ".devcontainer/**"
- ".vscode/**"
jobs:
unit_tests:
name: Unit tests Python ${{ matrix.python-version }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
timeout-minutes: 15
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- name: Checkout 🔔
uses: actions/checkout@v4
- name: Setup Python ${{ matrix.python-version }} 🔧
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Python Install dependencies 🧹
run: |
pip3 install -r requirements-dev.txt
- name: Run linter 👀
run: flake8
- name: Run unit tests 🧪
run: pytest
run_commands:
name: Run commands Python ${{ matrix.python-version }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
timeout-minutes: 15
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
os: [ubuntu-latest]
steps:
- name: Checkout 🔔
uses: actions/checkout@v4
- name: Setup Python ${{ matrix.python-version }} 🔧
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dynamodb-csv 💉
run: |
pip install setuptools
python setup.py install
dynamodb-csv -v
- name: Setup DynamoDB Local 🔧
uses: rrainn/[email protected]
with:
port: 8000
cors: "*"
- name: Create table 🔨
run: |
aws dynamodb create-table --cli-input-json file://my_table.json --region ap-northeast-1 --endpoint-url http://localhost:8000
env:
AWS_ACCESS_KEY_ID: "foo"
AWS_SECRET_ACCESS_KEY: "bar"
- name: Run commands 🚀
run: |
cp config.ini.example config.ini
echo "ENDPOINT_URL=http://localhost:8000" >> config.ini
dynamodb-csv -i -t my_table -f sample.csv
dynamodb-csv -e -t my_table -o sample_exp.csv
dynamodb-csv -e -t my_table -idx NumberSK-index -o sample_gsi_exp.csv
dynamodb-csv -e -t my_table -idx NumberSK-index -o sample_query_exp.csv
dynamodb-csv -e -t my_table -o sample_query_exp2.csv
dynamodb-csv --truncate -t my_table
dynamodb-csv -i -t my_table -f sample.csv --ignore
dynamodb-csv --move -t my_table my_table
action-timeline:
needs: [unit_tests, run_commands]
runs-on: ubuntu-latest
steps:
- name: Action timeline 📊
uses: Kesin11/actions-timeline@v2