Bump pytest-mock from 3.12.0 to 3.14.0 (#181) #193
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.8", "3.9", "3.10", "3.11", "3.12"] | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
steps: | |
- name: Checkout 🔔 | |
uses: actions/checkout@v3 | |
- name: Setup Python ${{ matrix.python-version }} 🔧 | |
uses: actions/setup-python@v4 | |
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.8", "3.9", "3.10", "3.11", "3.12"] | |
os: [ubuntu-latest] | |
steps: | |
- name: Checkout 🔔 | |
uses: actions/checkout@v3 | |
- name: Setup Python ${{ matrix.python-version }} 🔧 | |
uses: actions/setup-python@v4 | |
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@v1 |