diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 4132dd2..59ebec9 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -36,14 +36,18 @@ jobs: run: | pip install poetry poetry install + - name: Install ASN database + run: | + pip install pyasn + pyasn_util_download.py --latestv46 + pyasn_util_convert.py --single rib.*.bz2 asn.db - name: Run tests run: | poetry run pytest --exitfirst --disable-warnings --log-cli-level=DEBUG update: runs-on: ubuntu-latest - if: github.actor != 'dependabot[bot]' needs: test - if: github.event_name == 'push' || github.event_name == 'schedule' + if: github.actor != 'dependabot[bot]' && (github.event_name == 'push' || github.event_name == 'schedule') steps: - uses: actions/checkout@v3 - name: Set up Python diff --git a/cloud_providers.json b/cloud_providers.json index 1fd04d4..02c5bfb 100644 --- a/cloud_providers.json +++ b/cloud_providers.json @@ -104,7 +104,7 @@ "srtcdn.net" ], "ips_url": "https://techdocs.akamai.com/property-manager/pdfs/akamai_ipv4_ipv6_CIDRs-txt.zip", - "last_updated": "2024-01-27T23:48:59.259783", + "last_updated": "2024-01-28T05:10:25.602456", "name": "Akamai", "provider_type": "cdn", "regexes": {} @@ -6529,7 +6529,7 @@ "thinkboxsoftware.com" ], "ips_url": "https://ip-ranges.amazonaws.com/ip-ranges.json", - "last_updated": "2024-01-27T23:48:59.258779", + "last_updated": "2024-01-28T05:10:25.599175", "name": "Amazon", "provider_type": "cloud", "regexes": { @@ -10226,7 +10226,7 @@ "windowsazurestatus.cn" ], "ips_url": "https://download.microsoft.com/download/0/1/8/018E208D-54F8-44CD-AA26-CD7BC9524A8C/PublicIPs_20200824.xml", - "last_updated": "2024-01-27T23:48:59.259920", + "last_updated": "2024-01-28T05:10:25.601028", "name": "Azure", "provider_type": "cloud", "regexes": { @@ -10296,7 +10296,7 @@ "workers.dev" ], "ips_url": "https://api.cloudflare.com/client/v4/ips", - "last_updated": "2024-01-27T23:48:58.068943", + "last_updated": "2024-01-28T05:10:23.602209", "name": "Cloudflare", "provider_type": "cdn", "regexes": {} @@ -11911,7 +11911,7 @@ "nginxconfig.io" ], "ips_url": "https://digitalocean.com/geo/google.csv", - "last_updated": "2024-01-27T23:48:58.066018", + "last_updated": "2024-01-28T05:10:25.598591", "name": "DigitalOcean", "provider_type": "cloud", "regexes": { @@ -16189,7 +16189,7 @@ "github.com" ], "ips_url": "https://api.github.com/meta", - "last_updated": "2024-01-27T23:48:58.068373", + "last_updated": "2024-01-28T05:10:23.624646", "name": "GitHub", "provider_type": "cdn", "regexes": {} @@ -16864,7 +16864,7 @@ "googleapis.com" ], "ips_url": "https://www.gstatic.com/ipranges/cloud.json", - "last_updated": "2024-01-27T23:48:59.258491", + "last_updated": "2024-01-28T05:10:25.602162", "name": "Google", "provider_type": "cloud", "regexes": { @@ -17563,7 +17563,7 @@ "sun.com" ], "ips_url": "https://docs.oracle.com/en-us/iaas/tools/public_ip_ranges.json", - "last_updated": "2024-01-27T23:48:59.259601", + "last_updated": "2024-01-28T05:10:25.598123", "name": "Oracle", "provider_type": "cloud", "regexes": {} @@ -17635,7 +17635,7 @@ "zohowebstatic.com" ], "ips_url": "", - "last_updated": "2024-01-27T23:48:58.069073", + "last_updated": "2024-01-28T05:10:23.625972", "name": "Zoho", "provider_type": "cloud", "regexes": {} diff --git a/poetry.lock b/poetry.lock index 1e5d19d..3b7d991 100644 --- a/poetry.lock +++ b/poetry.lock @@ -470,13 +470,13 @@ files = [ [[package]] name = "pytest" -version = "8.0.0" +version = "7.4.4" description = "pytest: simple powerful testing with Python" optional = false -python-versions = ">=3.8" +python-versions = ">=3.7" files = [ - {file = "pytest-8.0.0-py3-none-any.whl", hash = "sha256:50fb9cbe836c3f20f0dfa99c565201fb75dc54c8d76373cd1bde06b06657bdb6"}, - {file = "pytest-8.0.0.tar.gz", hash = "sha256:249b1b0864530ba251b7438274c4d251c58d868edaaec8762893ad4a0d71c36c"}, + {file = "pytest-7.4.4-py3-none-any.whl", hash = "sha256:b090cdf5ed60bf4c45261be03239c2c1c22df034fbffe691abe93cd80cea01d8"}, + {file = "pytest-7.4.4.tar.gz", hash = "sha256:2cf0005922c6ace4a3e2ec8b4080eb0d9753fdc93107415332f50ce9e7994280"}, ] [package.dependencies] @@ -484,7 +484,7 @@ colorama = {version = "*", markers = "sys_platform == \"win32\""} exceptiongroup = {version = ">=1.0.0rc8", markers = "python_version < \"3.11\""} iniconfig = "*" packaging = "*" -pluggy = ">=1.3.0,<2.0" +pluggy = ">=0.12,<2.0" tomli = {version = ">=1.0.0", markers = "python_version < \"3.11\""} [package.extras] @@ -544,4 +544,4 @@ files = [ [metadata] lock-version = "2.0" python-versions = "^3.9" -content-hash = "2d9870f40166307890abb5f92488e5160982c10dd721c47dd311f1079669311d" +content-hash = "d9c45645c40268b9ba5b760ae4dfc84c8b82826104d14790039acdb26efcc9a6" diff --git a/pyproject.toml b/pyproject.toml index e294be4..8b3c6d9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -21,10 +21,10 @@ python = "^3.9" pydantic = "^2.4.2" httpx = "^0.26.0" pyasn = "^1.6.2" +pytest = "^7.0" [tool.poetry.group.dev.dependencies] black = ">=22.12,<25.0" -pytest = ">=7.4.3,<9.0.0" flake8 = ">=6.1,<8.0" pytest-asyncio = ">=0.21.1,<0.24.0"