From 2ef7de837a600a5e3b6741ea87747dd807fe1572 Mon Sep 17 00:00:00 2001 From: AHReccese Date: Mon, 21 Jul 2025 19:59:42 -0400 Subject: [PATCH 01/18] add setup Warp to acquire `ipv6` in `test.yml` --- .github/workflows/test.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ed24b05..31ac5a8 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -28,6 +28,8 @@ jobs: os: [ubuntu-22.04, windows-2022, macOS-13] python-version: [3.7, 3.8, 3.9, 3.10.5, 3.11.0, 3.12.0, 3.13.0] steps: + - name: Setup WARP + uses: fscarmen/warp-on-actions@v1.0 - uses: actions/checkout@v2 - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v2 From 87918a942249c7c71bcef63662241c81a715f63f Mon Sep 17 00:00:00 2001 From: AHReccese Date: Mon, 21 Jul 2025 20:11:53 -0400 Subject: [PATCH 02/18] add re-usable `setup_warp.yml` action --- .github/actions/setup_warp.yml | 62 ++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 .github/actions/setup_warp.yml diff --git a/.github/actions/setup_warp.yml b/.github/actions/setup_warp.yml new file mode 100644 index 0000000..fac3929 --- /dev/null +++ b/.github/actions/setup_warp.yml @@ -0,0 +1,62 @@ +name: 'Setup WARP' +description: 'Install and configure Cloudflare WARP on GitHub Actions runners' + +inputs: + mode: + description: 'Choose WARP mode: client or wireguard' + required: false + default: 'client' + +runs: + using: "composite" + steps: + - name: Install and configure WARP + shell: bash + run: | + if [ "${{ inputs.mode }}" == "client" ]; then + echo "WARP mode: client warp+doh." + sudo apt-get -y update + curl -fsSL https://pkg.cloudflareclient.com/pubkey.gpg | sudo gpg --yes --dearmor --output /usr/share/keyrings/cloudflare-warp-archive-keyring.gpg + echo "deb [arch=amd64 signed-by=/usr/share/keyrings/cloudflare-warp-archive-keyring.gpg] https://pkg.cloudflareclient.com/ $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/cloudflare-client.list + sudo apt-get update + sudo apt-get install -y cloudflare-warp + + # Auto-detect old/new CLI + if warp-cli --help | grep -q 'registration'; then + sudo warp-cli --accept-tos registration + else + sudo warp-cli --accept-tos register + fi + + sudo warp-cli --accept-tos set-mode warp+doh + sudo warp-cli --accept-tos connect + + elif [ "${{ inputs.mode }}" == "wireguard" ]; then + echo "WARP mode: wireguard." + sudo apt-get -y update + sudo apt-get -y install --no-install-recommends net-tools iproute2 openresolv dnsutils iptables wireguard-tools + LAN=$(ip route get 192.168.193.10 | grep -oP 'src \K\S+') + echo "[Interface] + PrivateKey = cKE7LmCF61IhqqABGhvJ44jWXp8fKymcMAEVAzbDF2k= + Address = 172.16.0.2/32 + Address = fd01:5ca1:ab1e:823e:e094:eb1c:ff87:1fab/128 + PostUp = ip -4 rule add from $LAN lookup main + PostDown = ip -4 rule delete from $LAN lookup main + DNS = 8.8.8.8,8.8.4.4 + MTU = 1280 + + [Peer] + PublicKey = bmXOC+F1FxEMF9dyiK2H5/1SUtzH0JuVo51h2wPfgyo= + AllowedIPs = 0.0.0.0/0 + AllowedIPs = ::/0 + Endpoint = 162.159.193.10:2408" | sed "s/^[ ]\+//g" | sudo tee /etc/wireguard/warp.conf + sudo wg-quick up warp + + else + echo "Invalid mode: ${{ inputs.mode }}. Choose 'client' or 'wireguard'." + exit 1 + fi + + # Test IPv6 connectivity + sleep 1 + sudo curl -s6 --retry 3 -A Mozilla https://api64.ipify.org || echo "IPv6 not available" From fa458aac19c5f02baf3f05f60c37a79a5c9e7367 Mon Sep 17 00:00:00 2001 From: AHReccese Date: Mon, 21 Jul 2025 20:12:14 -0400 Subject: [PATCH 03/18] integrate `setup_warp.yml` action into `test.yml` --- .github/workflows/test.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 31ac5a8..41bfbe2 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -28,9 +28,13 @@ jobs: os: [ubuntu-22.04, windows-2022, macOS-13] python-version: [3.7, 3.8, 3.9, 3.10.5, 3.11.0, 3.12.0, 3.13.0] steps: - - name: Setup WARP - uses: fscarmen/warp-on-actions@v1.0 - uses: actions/checkout@v2 + # Setup WARP (Ubuntu only) + - name: Setup WARP + if: matrix.os == 'ubuntu-22.04' + uses: ./.github/actions/setup_warp + with: + mode: client - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v2 with: From f49783562b980f1a03bbb9a91821418acd4782f6 Mon Sep 17 00:00:00 2001 From: AHReccese Date: Mon, 21 Jul 2025 20:14:54 -0400 Subject: [PATCH 04/18] update path --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 41bfbe2..a29b835 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -32,7 +32,7 @@ jobs: # Setup WARP (Ubuntu only) - name: Setup WARP if: matrix.os == 'ubuntu-22.04' - uses: ./.github/actions/setup_warp + uses: ./.github/actions/setup_warp.yml with: mode: client - name: Set up Python ${{ matrix.python-version }} From b80f42982c43ec79ef828f3d2378d3e74978f90e Mon Sep 17 00:00:00 2001 From: AHReccese Date: Mon, 21 Jul 2025 20:18:43 -0400 Subject: [PATCH 05/18] fix addressing the path to warp action --- .github/actions/{setup_warp.yml => setup-warp/action.yml} | 0 .github/workflows/test.yml | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) rename .github/actions/{setup_warp.yml => setup-warp/action.yml} (100%) diff --git a/.github/actions/setup_warp.yml b/.github/actions/setup-warp/action.yml similarity index 100% rename from .github/actions/setup_warp.yml rename to .github/actions/setup-warp/action.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a29b835..84ae1ed 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -32,7 +32,7 @@ jobs: # Setup WARP (Ubuntu only) - name: Setup WARP if: matrix.os == 'ubuntu-22.04' - uses: ./.github/actions/setup_warp.yml + uses: ./.github/actions/setup-warp with: mode: client - name: Set up Python ${{ matrix.python-version }} From 7b8a26e252c71649e08ae896f8adcdb6bcdd9bab Mon Sep 17 00:00:00 2001 From: AHReccese Date: Mon, 21 Jul 2025 20:21:14 -0400 Subject: [PATCH 06/18] fix old cli --- .github/actions/setup-warp/action.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/actions/setup-warp/action.yml b/.github/actions/setup-warp/action.yml index fac3929..2a8ebfe 100644 --- a/.github/actions/setup-warp/action.yml +++ b/.github/actions/setup-warp/action.yml @@ -1,5 +1,6 @@ name: 'Setup WARP' description: 'Install and configure Cloudflare WARP on GitHub Actions runners' +author: 'you@example.com' inputs: mode: @@ -21,10 +22,12 @@ runs: sudo apt-get update sudo apt-get install -y cloudflare-warp - # Auto-detect old/new CLI + # Detect old or new CLI and register appropriately if warp-cli --help | grep -q 'registration'; then - sudo warp-cli --accept-tos registration + echo "Using new CLI: warp-cli registration new" + sudo warp-cli --accept-tos registration new else + echo "Using old CLI: warp-cli register" sudo warp-cli --accept-tos register fi @@ -59,4 +62,5 @@ runs: # Test IPv6 connectivity sleep 1 + echo "Testing IPv6 connectivity..." sudo curl -s6 --retry 3 -A Mozilla https://api64.ipify.org || echo "IPv6 not available" From 74e4b96b1f6f5a9a568271af46d5687bdc3213e4 Mon Sep 17 00:00:00 2001 From: AHReccese Date: Mon, 21 Jul 2025 20:22:07 -0400 Subject: [PATCH 07/18] update author --- .github/actions/setup-warp/action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions/setup-warp/action.yml b/.github/actions/setup-warp/action.yml index 2a8ebfe..1070fbc 100644 --- a/.github/actions/setup-warp/action.yml +++ b/.github/actions/setup-warp/action.yml @@ -1,6 +1,6 @@ name: 'Setup WARP' description: 'Install and configure Cloudflare WARP on GitHub Actions runners' -author: 'you@example.com' +author: 'ipspot@openscilab.com' inputs: mode: From a10cdbca3535a25870ce7fb5b66ca2fa0205b00c Mon Sep 17 00:00:00 2001 From: AHReccese Date: Mon, 21 Jul 2025 20:23:41 -0400 Subject: [PATCH 08/18] try to fix set-mode issue --- .github/actions/setup-warp/action.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/actions/setup-warp/action.yml b/.github/actions/setup-warp/action.yml index 1070fbc..c7b2a4b 100644 --- a/.github/actions/setup-warp/action.yml +++ b/.github/actions/setup-warp/action.yml @@ -31,7 +31,15 @@ runs: sudo warp-cli --accept-tos register fi - sudo warp-cli --accept-tos set-mode warp+doh + # Set mode only if supported + if warp-cli --help | grep -q 'set-mode'; then + echo "Setting mode warp+doh (old CLI)..." + sudo warp-cli --accept-tos set-mode warp+doh + else + echo "Skipping set-mode (new CLI does not support it)..." + fi + + # Connect sudo warp-cli --accept-tos connect elif [ "${{ inputs.mode }}" == "wireguard" ]; then From 77e3653ecd1cccfa0236248c7026896b6e6b414b Mon Sep 17 00:00:00 2001 From: AHReccese Date: Mon, 21 Jul 2025 20:35:37 -0400 Subject: [PATCH 09/18] `CHANGELOG.md` updated --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0c1409b..42bc856 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ## [Unreleased] ### Added +- `Setup WARP` step in `test.yml` +- `setup-warp` action - Support [ipwho.is](https://ipwho.is/) - Support [ipquery.io](http://api.ipquery.io/?format=json) - Support [wtfismyip.com](https://wtfismyip.com/json) From 1b7a427db79f194bd4f73f4c67edcc0dbd4f1bc1 Mon Sep 17 00:00:00 2001 From: sepandhaghighi Date: Wed, 23 Jul 2025 17:33:40 +0330 Subject: [PATCH 10/18] fix : ifconfig.com timeout --- tests/test_ipv4.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_ipv4.py b/tests/test_ipv4.py index 1dfd433..9f88fb9 100644 --- a/tests/test_ipv4.py +++ b/tests/test_ipv4.py @@ -174,7 +174,7 @@ def test_public_ipv4_my_ip_io_net_error(): def test_public_ipv4_ifconfig_co_success(): - result = get_public_ipv4(api=IPv4API.IFCONFIG_CO, geo=True) + result = get_public_ipv4(api=IPv4API.IFCONFIG_CO, geo=True, timeout=20) assert result["status"] assert is_ipv4(result["data"]["ip"]) assert set(result["data"].keys()) == DATA_ITEMS From b89bf738fed3c592f118618c042124fdbdea5961 Mon Sep 17 00:00:00 2001 From: AHReccese Date: Thu, 24 Jul 2025 17:46:50 -0400 Subject: [PATCH 11/18] add `private_key`, `public_key` and `endpoint` to action variables --- .github/actions/setup-warp/action.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/actions/setup-warp/action.yml b/.github/actions/setup-warp/action.yml index c7b2a4b..7bc29c8 100644 --- a/.github/actions/setup-warp/action.yml +++ b/.github/actions/setup-warp/action.yml @@ -48,7 +48,7 @@ runs: sudo apt-get -y install --no-install-recommends net-tools iproute2 openresolv dnsutils iptables wireguard-tools LAN=$(ip route get 192.168.193.10 | grep -oP 'src \K\S+') echo "[Interface] - PrivateKey = cKE7LmCF61IhqqABGhvJ44jWXp8fKymcMAEVAzbDF2k= + PrivateKey = ${{ secrets.WARP_WG_PRIVATE_KEY }} Address = 172.16.0.2/32 Address = fd01:5ca1:ab1e:823e:e094:eb1c:ff87:1fab/128 PostUp = ip -4 rule add from $LAN lookup main @@ -57,10 +57,10 @@ runs: MTU = 1280 [Peer] - PublicKey = bmXOC+F1FxEMF9dyiK2H5/1SUtzH0JuVo51h2wPfgyo= + PublicKey = ${{ secrets.WARP_WG_PEER_PUBLIC_KEY }} AllowedIPs = 0.0.0.0/0 AllowedIPs = ::/0 - Endpoint = 162.159.193.10:2408" | sed "s/^[ ]\+//g" | sudo tee /etc/wireguard/warp.conf + Endpoint = ${{ secrets.WARP_WG_ENDPOINT }}" | sed "s/^[ ]\+//g" | sudo tee /etc/wireguard/warp.conf sudo wg-quick up warp else From 0b5f358e67e5da61ccf475de9e8de0ee67f2c78c Mon Sep 17 00:00:00 2001 From: AHReccese Date: Thu, 24 Jul 2025 17:53:38 -0400 Subject: [PATCH 12/18] pass secret from repo-level secret variables --- .github/workflows/test.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 84ae1ed..9b03a12 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -35,6 +35,9 @@ jobs: uses: ./.github/actions/setup-warp with: mode: client + wg_private_key: ${{ secrets.WARP_WG_PRIVATE_KEY }} + wg_peer_public_key: ${{ secrets.WARP_WG_PEER_PUBLIC_KEY }} + wg_endpoint: ${{ secrets.WARP_WG_ENDPOINT }} - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v2 with: From 2aed7a4d14a8578064c54cf8f26dc345e020c8dd Mon Sep 17 00:00:00 2001 From: AHReccese Date: Thu, 24 Jul 2025 17:53:48 -0400 Subject: [PATCH 13/18] define inputs in the re-usable action --- .github/actions/setup-warp/action.yml | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/.github/actions/setup-warp/action.yml b/.github/actions/setup-warp/action.yml index 7bc29c8..53bb9bc 100644 --- a/.github/actions/setup-warp/action.yml +++ b/.github/actions/setup-warp/action.yml @@ -4,9 +4,21 @@ author: 'ipspot@openscilab.com' inputs: mode: - description: 'Choose WARP mode: client or wireguard' + description: Choose WARP mode: client or wireguard + required: false + default: client + + wg_private_key: + description: WireGuard private key + required: false + + wg_peer_public_key: + description: WireGuard peer public key + required: false + + wg_endpoint: + description: WireGuard endpoint IP and port required: false - default: 'client' runs: using: "composite" @@ -48,7 +60,7 @@ runs: sudo apt-get -y install --no-install-recommends net-tools iproute2 openresolv dnsutils iptables wireguard-tools LAN=$(ip route get 192.168.193.10 | grep -oP 'src \K\S+') echo "[Interface] - PrivateKey = ${{ secrets.WARP_WG_PRIVATE_KEY }} + PrivateKey = ${{ inputs.wg_private_key }} Address = 172.16.0.2/32 Address = fd01:5ca1:ab1e:823e:e094:eb1c:ff87:1fab/128 PostUp = ip -4 rule add from $LAN lookup main @@ -57,10 +69,10 @@ runs: MTU = 1280 [Peer] - PublicKey = ${{ secrets.WARP_WG_PEER_PUBLIC_KEY }} + PublicKey = ${{ inputs.wg_peer_public_key }} AllowedIPs = 0.0.0.0/0 AllowedIPs = ::/0 - Endpoint = ${{ secrets.WARP_WG_ENDPOINT }}" | sed "s/^[ ]\+//g" | sudo tee /etc/wireguard/warp.conf + Endpoint = ${{ inputs.wg_endpoint }}" | sed "s/^[ ]\+//g" | sudo tee /etc/wireguard/warp.conf sudo wg-quick up warp else From 4f309d02dc6a82ef9bf17e91b738782296eaddd0 Mon Sep 17 00:00:00 2001 From: AHReccese Date: Thu, 24 Jul 2025 17:58:06 -0400 Subject: [PATCH 14/18] update description field --- .github/actions/setup-warp/action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions/setup-warp/action.yml b/.github/actions/setup-warp/action.yml index 53bb9bc..23cdfc4 100644 --- a/.github/actions/setup-warp/action.yml +++ b/.github/actions/setup-warp/action.yml @@ -4,7 +4,7 @@ author: 'ipspot@openscilab.com' inputs: mode: - description: Choose WARP mode: client or wireguard + description: WARP mode (client or wireguard) required: false default: client From 7775619c29e06ecba19043a84f6e34b9337c496e Mon Sep 17 00:00:00 2001 From: AHReccese Date: Thu, 24 Jul 2025 18:03:42 -0400 Subject: [PATCH 15/18] test `wireguard` mode --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 9b03a12..817a84f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -34,7 +34,7 @@ jobs: if: matrix.os == 'ubuntu-22.04' uses: ./.github/actions/setup-warp with: - mode: client + mode: wireguard wg_private_key: ${{ secrets.WARP_WG_PRIVATE_KEY }} wg_peer_public_key: ${{ secrets.WARP_WG_PEER_PUBLIC_KEY }} wg_endpoint: ${{ secrets.WARP_WG_ENDPOINT }} From ea94cb4a414404040d112cec1c35fdeff0f522ca Mon Sep 17 00:00:00 2001 From: AHReccese Date: Thu, 24 Jul 2025 19:26:39 -0400 Subject: [PATCH 16/18] simplify ipv6 installation with WARP --- .github/actions/setup-warp/action.yml | 79 +++------------------------ .github/workflows/test.yml | 5 -- 2 files changed, 8 insertions(+), 76 deletions(-) diff --git a/.github/actions/setup-warp/action.yml b/.github/actions/setup-warp/action.yml index 23cdfc4..ebb0337 100644 --- a/.github/actions/setup-warp/action.yml +++ b/.github/actions/setup-warp/action.yml @@ -2,83 +2,20 @@ name: 'Setup WARP' description: 'Install and configure Cloudflare WARP on GitHub Actions runners' author: 'ipspot@openscilab.com' -inputs: - mode: - description: WARP mode (client or wireguard) - required: false - default: client - - wg_private_key: - description: WireGuard private key - required: false - - wg_peer_public_key: - description: WireGuard peer public key - required: false - - wg_endpoint: - description: WireGuard endpoint IP and port - required: false - runs: using: "composite" steps: - name: Install and configure WARP shell: bash run: | - if [ "${{ inputs.mode }}" == "client" ]; then - echo "WARP mode: client warp+doh." - sudo apt-get -y update - curl -fsSL https://pkg.cloudflareclient.com/pubkey.gpg | sudo gpg --yes --dearmor --output /usr/share/keyrings/cloudflare-warp-archive-keyring.gpg - echo "deb [arch=amd64 signed-by=/usr/share/keyrings/cloudflare-warp-archive-keyring.gpg] https://pkg.cloudflareclient.com/ $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/cloudflare-client.list - sudo apt-get update - sudo apt-get install -y cloudflare-warp - - # Detect old or new CLI and register appropriately - if warp-cli --help | grep -q 'registration'; then - echo "Using new CLI: warp-cli registration new" - sudo warp-cli --accept-tos registration new - else - echo "Using old CLI: warp-cli register" - sudo warp-cli --accept-tos register - fi - - # Set mode only if supported - if warp-cli --help | grep -q 'set-mode'; then - echo "Setting mode warp+doh (old CLI)..." - sudo warp-cli --accept-tos set-mode warp+doh - else - echo "Skipping set-mode (new CLI does not support it)..." - fi - - # Connect - sudo warp-cli --accept-tos connect - - elif [ "${{ inputs.mode }}" == "wireguard" ]; then - echo "WARP mode: wireguard." - sudo apt-get -y update - sudo apt-get -y install --no-install-recommends net-tools iproute2 openresolv dnsutils iptables wireguard-tools - LAN=$(ip route get 192.168.193.10 | grep -oP 'src \K\S+') - echo "[Interface] - PrivateKey = ${{ inputs.wg_private_key }} - Address = 172.16.0.2/32 - Address = fd01:5ca1:ab1e:823e:e094:eb1c:ff87:1fab/128 - PostUp = ip -4 rule add from $LAN lookup main - PostDown = ip -4 rule delete from $LAN lookup main - DNS = 8.8.8.8,8.8.4.4 - MTU = 1280 - - [Peer] - PublicKey = ${{ inputs.wg_peer_public_key }} - AllowedIPs = 0.0.0.0/0 - AllowedIPs = ::/0 - Endpoint = ${{ inputs.wg_endpoint }}" | sed "s/^[ ]\+//g" | sudo tee /etc/wireguard/warp.conf - sudo wg-quick up warp - - else - echo "Invalid mode: ${{ inputs.mode }}. Choose 'client' or 'wireguard'." - exit 1 - fi + echo "WARP mode: client warp+doh." + sudo apt-get -y update + curl -fsSL https://pkg.cloudflareclient.com/pubkey.gpg | sudo gpg --yes --dearmor --output /usr/share/keyrings/cloudflare-warp-archive-keyring.gpg + echo "deb [arch=amd64 signed-by=/usr/share/keyrings/cloudflare-warp-archive-keyring.gpg] https://pkg.cloudflareclient.com/ $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/cloudflare-client.list + sudo apt-get update + sudo apt-get install -y cloudflare-warp + sudo warp-cli --accept-tos registration new + sudo warp-cli --accept-tos connect # Test IPv6 connectivity sleep 1 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 817a84f..d0a198d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -33,11 +33,6 @@ jobs: - name: Setup WARP if: matrix.os == 'ubuntu-22.04' uses: ./.github/actions/setup-warp - with: - mode: wireguard - wg_private_key: ${{ secrets.WARP_WG_PRIVATE_KEY }} - wg_peer_public_key: ${{ secrets.WARP_WG_PEER_PUBLIC_KEY }} - wg_endpoint: ${{ secrets.WARP_WG_ENDPOINT }} - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v2 with: From 22d24d3e12455cf252e9e9d530b7bc8c0a4b1218 Mon Sep 17 00:00:00 2001 From: AHReccese Date: Wed, 30 Jul 2025 22:38:31 -0400 Subject: [PATCH 17/18] limit `test_ipv6.py` testcases to ubuntu --- .github/workflows/test.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d0a198d..e7d93fc 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -62,7 +62,12 @@ jobs: pip install --upgrade --upgrade-strategy=only-if-needed -r test-requirements.txt - name: Test with pytest run: | - python -m pytest . --cov=ipspot --cov-report=term + if [[ "${{ matrix.os }}" == "ubuntu-22.04" ]]; then + python -m pytest . --cov=ipspot --cov-report=term + else + python -m pytest . --cov=ipspot --cov-report=term --ignore=tests/test_ipv6.py + fi + shell: bash - name: Upload coverage to Codecov uses: codecov/codecov-action@v4 with: From 7172445d53093412c580a335b18e601b7dd2d651 Mon Sep 17 00:00:00 2001 From: AHReccese Date: Thu, 31 Jul 2025 10:41:13 -0400 Subject: [PATCH 18/18] refactor --- .github/workflows/test.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e7d93fc..51e0fc5 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -62,7 +62,9 @@ jobs: pip install --upgrade --upgrade-strategy=only-if-needed -r test-requirements.txt - name: Test with pytest run: | - if [[ "${{ matrix.os }}" == "ubuntu-22.04" ]]; then + OS="${{ matrix.os }}" + TEST_OS="${{ env.TEST_OS }}" + if [[ "$OS" == "$TEST_OS" ]]; then python -m pytest . --cov=ipspot --cov-report=term else python -m pytest . --cov=ipspot --cov-report=term --ignore=tests/test_ipv6.py