Skip to content

4.0.1 - Bug fix for __repr__ #41

4.0.1 - Bug fix for __repr__

4.0.1 - Bug fix for __repr__ #41

Workflow file for this run

name: Test Python Package
on:
workflow_dispatch:
workflow_call:
secrets:
TEST_API_KEY:
required: true
TEST_API_SECRET:
required: true
inputs:
TEST_API_HOST:
required: true
type: string
TEST_API_ARCHIVE_ORDERING_ID_1:
required: true
type: string
TEST_API_ARCHIVE_LICENSE_HREF_1:
required: true
type: string
TEST_API_ARCHIVE_BUNDLE_KEY_1:
required: true
type: string
TEST_API_ARCHIVE_ORDERING_ID_2:
required: true
type: string
TEST_API_ARCHIVE_LICENSE_HREF_2:
required: true
type: string
TEST_API_ARCHIVE_BUNDLE_KEY_2:
required: true
type: string
TEST_API_ORDER_ID_CAMPAIGNS:
required: true
type: string
TEST_API_ORDER_ID_DATASETS:
required: true
type: string
TEST_API_CAMPAIGN_ID:
required: true
type: string
TEST_API_DATASET_ID:
required: true
type: string
TEST_API_RESOURCE_ID:
required: true
type: string
TEST_API_COLLECTION_ID:
required: true
type: string
TEST_API_COLLECTION_ITEM_ID:
required: true
type: string
TEST_API_TASKING_ORDERING_ID_1:
required: true
type: string
TEST_API_TASKING_BUNDLE_KEY_1:
required: true
type: string
TEST_API_TASKING_LICENSE_HREF_1:
required: true
type: string
TEST_API_TASKING_PRIORITY_KEY_1:
required: true
type: string
TEST_API_TASKING_CLOUD_1:
required: true
type: string
TEST_API_TASKING_ORDERING_ID_2:
required: true
type: string
TEST_API_TASKING_BUNDLE_KEY_2:
required: true
type: string
TEST_API_TASKING_LICENSE_HREF_2:
required: true
type: string
TEST_API_TASKING_PRIORITY_KEY_2:
required: true
type: string
TEST_API_TASKING_CLOUD_2:
required: true
type: string
pull_request:
types: [opened,edited,synchronize,reopened,ready_for_review,review_requested,]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.x'
- run: pip3 install -r requirements.txt
- run: python3 -m unittest tests/test_setup.py
env:
API_KEY: ${{ secrets.TEST_API_KEY}}
API_SECRET: ${{ secrets.TEST_API_SECRET}}
API_HOST: ${{ vars.TEST_API_HOST}}
API_ARCHIVE_ORDERING_ID_1: ${{ vars.TEST_API_ARCHIVE_ORDERING_ID_1}}
API_ARCHIVE_LICENSE_HREF_1: ${{ vars.TEST_API_ARCHIVE_LICENSE_HREF_1}}
API_ARCHIVE_BUNDLE_KEY_1: ${{ vars.TEST_API_ARCHIVE_BUNDLE_KEY_1}}
API_ARCHIVE_ORDERING_ID_2: ${{ vars.TEST_API_ARCHIVE_ORDERING_ID_2}}
API_ARCHIVE_LICENSE_HREF_2: ${{ vars.TEST_API_ARCHIVE_LICENSE_HREF_2}}
API_ARCHIVE_BUNDLE_KEY_2: ${{ vars.TEST_API_ARCHIVE_BUNDLE_KEY_2}}
API_ORDER_ID_CAMPAIGNS: ${{ vars.TEST_API_ORDER_ID_CAMPAIGNS}}
API_ORDER_ID_DATASETS: ${{ vars.TEST_API_ORDER_ID_DATASETS}}
API_CAMPAIGN_ID: ${{ vars.TEST_API_CAMPAIGN_ID}}
API_DATASET_ID: ${{ vars.TEST_API_DATASET_ID}}
API_RESOURCE_ID: ${{ vars.TEST_API_RESOURCE_ID}}
API_COLLECTION_ID: ${{ vars.TEST_API_COLLECTION_ID}}
API_COLLECTION_ITEM_ID: ${{ vars.TEST_API_COLLECTION_ITEM_ID}}
API_TASKING_ORDERING_ID_1: ${{ vars.TEST_API_TASKING_ORDERING_ID_1}}
API_TASKING_BUNDLE_KEY_1: ${{ vars.TEST_API_TASKING_BUNDLE_KEY_1}}
API_TASKING_LICENSE_HREF_1: ${{ vars.TEST_API_TASKING_LICENSE_HREF_1}}
API_TASKING_PRIORITY_KEY_1: ${{ vars.TEST_API_TASKING_PRIORITY_KEY_1}}
API_TASKING_CLOUD_1: ${{ vars.TEST_API_TASKING_CLOUD_1}}
API_TASKING_ORDERING_ID_2: ${{ vars.TEST_API_TASKING_ORDERING_ID_2}}
API_TASKING_BUNDLE_KEY_2: ${{ vars.TEST_API_TASKING_BUNDLE_KEY_2}}
API_TASKING_LICENSE_HREF_2: ${{ vars.TEST_API_TASKING_LICENSE_HREF_2}}
API_TASKING_PRIORITY_KEY_2: ${{ vars.TEST_API_TASKING_PRIORITY_KEY_2}}
API_TASKING_CLOUD_2: ${{ vars.TEST_API_TASKING_CLOUD_2}}
- run: python3 -m unittest tests/test_archive.py tests/test_auth.py tests/test_collections.py tests/test_list.py tests/test_orders.py tests/test_price.py tests/test_rfc3339.py tests/test_tasking.py
env:
API_KEY: ${{ secrets.TEST_API_KEY}}
API_SECRET: ${{ secrets.TEST_API_SECRET}}
API_HOST: ${{ vars.TEST_API_HOST}}
API_ARCHIVE_ORDERING_ID_1: ${{ vars.TEST_API_ARCHIVE_ORDERING_ID_1}}
API_ARCHIVE_LICENSE_HREF_1: ${{ vars.TEST_API_ARCHIVE_LICENSE_HREF_1}}
API_ARCHIVE_BUNDLE_KEY_1: ${{ vars.TEST_API_ARCHIVE_BUNDLE_KEY_1}}
API_ARCHIVE_ORDERING_ID_2: ${{ vars.TEST_API_ARCHIVE_ORDERING_ID_2}}
API_ARCHIVE_LICENSE_HREF_2: ${{ vars.TEST_API_ARCHIVE_LICENSE_HREF_2}}
API_ARCHIVE_BUNDLE_KEY_2: ${{ vars.TEST_API_ARCHIVE_BUNDLE_KEY_2}}
API_ORDER_ID_CAMPAIGNS: ${{ vars.TEST_API_ORDER_ID_CAMPAIGNS}}
API_ORDER_ID_DATASETS: ${{ vars.TEST_API_ORDER_ID_DATASETS}}
API_CAMPAIGN_ID: ${{ vars.TEST_API_CAMPAIGN_ID}}
API_DATASET_ID: ${{ vars.TEST_API_DATASET_ID}}
API_RESOURCE_ID: ${{ vars.TEST_API_RESOURCE_ID}}
API_COLLECTION_ID: ${{ vars.TEST_API_COLLECTION_ID}}
API_COLLECTION_ITEM_ID: ${{ vars.TEST_API_COLLECTION_ITEM_ID}}
API_TASKING_ORDERING_ID_1: ${{ vars.TEST_API_TASKING_ORDERING_ID_1}}
API_TASKING_BUNDLE_KEY_1: ${{ vars.TEST_API_TASKING_BUNDLE_KEY_1}}
API_TASKING_LICENSE_HREF_1: ${{ vars.TEST_API_TASKING_LICENSE_HREF_1}}
API_TASKING_PRIORITY_KEY_1: ${{ vars.TEST_API_TASKING_PRIORITY_KEY_1}}
API_TASKING_CLOUD_1: ${{ vars.TEST_API_TASKING_CLOUD_1}}
API_TASKING_ORDERING_ID_2: ${{ vars.TEST_API_TASKING_ORDERING_ID_2}}
API_TASKING_BUNDLE_KEY_2: ${{ vars.TEST_API_TASKING_BUNDLE_KEY_2}}
API_TASKING_LICENSE_HREF_2: ${{ vars.TEST_API_TASKING_LICENSE_HREF_2}}
API_TASKING_PRIORITY_KEY_2: ${{ vars.TEST_API_TASKING_PRIORITY_KEY_2}}
API_TASKING_CLOUD_2: ${{ vars.TEST_API_TASKING_CLOUD_2}}