2022-01-18 17:58:21 +00:00
|
|
|
# Run separate test cases to verify Moto works with older versions of dependencies
|
|
|
|
#
|
|
|
|
name: "Outdated Dependency Tests"
|
|
|
|
|
2022-02-08 19:25:42 +00:00
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
types: [ labeled ]
|
2022-01-18 17:58:21 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
test:
|
2022-02-08 19:25:42 +00:00
|
|
|
if: ${{ github.event.label.name == 'moto-core' }}
|
2022-01-18 17:58:21 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
2022-03-18 11:17:21 +00:00
|
|
|
python-version: [ "3.10" ]
|
|
|
|
responses-version: ["0.11.0", "0.12.0", "0.13.0", "0.15.0", "0.17.0", "0.19.0" ]
|
2022-01-18 17:58:21 +00:00
|
|
|
mock-version: [ "3.0.5", "4.0.0", "4.0.3" ]
|
2022-05-05 11:06:31 +00:00
|
|
|
werkzeug-version: ["2.0.1", "2.1.1"]
|
2022-01-18 17:58:21 +00:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout repository
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Set up Python ${{ matrix.python-version }}
|
|
|
|
uses: actions/setup-python@v2
|
|
|
|
with:
|
|
|
|
python-version: ${{ matrix.python-version }}
|
|
|
|
|
|
|
|
- name: Update pip
|
|
|
|
run: |
|
|
|
|
python -m pip install --upgrade pip
|
|
|
|
|
|
|
|
- name: Install project dependencies
|
|
|
|
run: |
|
|
|
|
pip install -r requirements-dev.txt
|
|
|
|
pip install responses==${{ matrix.responses-version }}
|
|
|
|
pip install mock==${{ matrix.mock-version }}
|
2022-05-05 11:06:31 +00:00
|
|
|
pip install werkzeug==${{ matrix.werkzeug-version }}
|
2022-01-18 17:58:21 +00:00
|
|
|
|
|
|
|
- name: Run tests
|
|
|
|
run: |
|
2022-05-05 11:06:31 +00:00
|
|
|
pytest -sv tests/test_core ./tests/test_apigateway/test_apigateway_integration.py ./tests/test_s3/test_server.py
|