From 10c9b355ee4b8c2987a5bd3c5d3a9ccc5f268cce Mon Sep 17 00:00:00 2001 From: dylan Date: Fri, 3 Jan 2025 11:32:47 -0800 Subject: [PATCH 01/13] test CI --- .github/workflows/ci.yml | 3 ++- .gitignore | 3 ++- example.py | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f8b2178e..bcb5db66 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,6 +19,7 @@ jobs: python-version: 3.8 - uses: actions/cache@v1 + id: cache with: path: ~/.cache/pip key: ${{ runner.os }}-pip-${{ hashFiles('setup.py') }} @@ -52,7 +53,7 @@ jobs: fetch-depth: 1 - name: Set up Python 3.7 - uses: actions/setup-python@v1 + uses: actions/setup-python@v2 with: python-version: 3.7 diff --git a/.gitignore b/.gitignore index ee8b5353..2ad6ffb4 100644 --- a/.gitignore +++ b/.gitignore @@ -14,4 +14,5 @@ pylint.out posthog-analytics .idea .python-version -.coverage \ No newline at end of file +.coverage +pyrightconfig.json \ No newline at end of file diff --git a/example.py b/example.py index 885fb56a..8888e7ef 100644 --- a/example.py +++ b/example.py @@ -1,7 +1,7 @@ # PostHog Python library example # Import the library -import time +# import time import posthog From 6f8da7c83d004fe75001014137443f732f710d6a Mon Sep 17 00:00:00 2001 From: dylan Date: Fri, 3 Jan 2025 11:36:18 -0800 Subject: [PATCH 02/13] heck it, upgrade python --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bcb5db66..a9cc3944 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -52,10 +52,10 @@ jobs: with: fetch-depth: 1 - - name: Set up Python 3.7 + - name: Set up Python 3.8 uses: actions/setup-python@v2 with: - python-version: 3.7 + python-version: 3.8 - name: Install requirements.txt dependencies with pip run: | From e61584d96d2481e71eed7961d0b18953a3a31802 Mon Sep 17 00:00:00 2001 From: dylan Date: Fri, 3 Jan 2025 11:38:14 -0800 Subject: [PATCH 03/13] okay don't do anything silly with the cache hits i guess --- .github/workflows/ci.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a9cc3944..4204b935 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,7 +19,6 @@ jobs: python-version: 3.8 - uses: actions/cache@v1 - id: cache with: path: ~/.cache/pip key: ${{ runner.os }}-pip-${{ hashFiles('setup.py') }} From adf4627bb5ed5200a4b3c3c9cb52f23626470839 Mon Sep 17 00:00:00 2001 From: dylan Date: Fri, 3 Jan 2025 11:43:10 -0800 Subject: [PATCH 04/13] more CI upgrades :crossedfingers --- .github/workflows/ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4204b935..bb755faa 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,7 +18,8 @@ jobs: with: python-version: 3.8 - - uses: actions/cache@v1 + - uses: actions/cache@v3 + id: cache with: path: ~/.cache/pip key: ${{ runner.os }}-pip-${{ hashFiles('setup.py') }} From d0a8364a97a00a6169f904e41431d93e73a2c702 Mon Sep 17 00:00:00 2001 From: dylan Date: Fri, 3 Jan 2025 11:46:44 -0800 Subject: [PATCH 05/13] upgrade all CI to latest versions, then --- .github/workflows/ci.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bb755faa..a72917a5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,12 +9,12 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 with: fetch-depth: 1 - name: Set up Python 3.8 - uses: actions/setup-python@v2 + uses: actions/setup-python@v3 with: python-version: 3.8 @@ -48,12 +48,12 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v3 with: fetch-depth: 1 - name: Set up Python 3.8 - uses: actions/setup-python@v2 + uses: actions/setup-python@v3 with: python-version: 3.8 From 6d35f7c622c3fa3395d88c896e33e4c2fd6866ab Mon Sep 17 00:00:00 2001 From: dylan Date: Fri, 3 Jan 2025 11:53:11 -0800 Subject: [PATCH 06/13] jk this is how python works --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a72917a5..641b2511 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,7 +14,7 @@ jobs: fetch-depth: 1 - name: Set up Python 3.8 - uses: actions/setup-python@v3 + uses: actions/setup-python@v2 with: python-version: 3.8 @@ -53,7 +53,7 @@ jobs: fetch-depth: 1 - name: Set up Python 3.8 - uses: actions/setup-python@v3 + uses: actions/setup-python@v2 with: python-version: 3.8 From 19e3160d00a77eac204c5812f1b5d2c35ed2b189 Mon Sep 17 00:00:00 2001 From: dylan Date: Fri, 3 Jan 2025 11:57:09 -0800 Subject: [PATCH 07/13] whackamole --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 641b2511..c2250e4c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,7 +9,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v2 with: fetch-depth: 1 @@ -48,7 +48,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v2 with: fetch-depth: 1 From d1a90bd811125bb219099fed4d5429fc34fa1884 Mon Sep 17 00:00:00 2001 From: dylan Date: Fri, 3 Jan 2025 12:01:39 -0800 Subject: [PATCH 08/13] what even --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c2250e4c..9273b480 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,7 +14,7 @@ jobs: fetch-depth: 1 - name: Set up Python 3.8 - uses: actions/setup-python@v2 + uses: actions/setup-python@v1 with: python-version: 3.8 @@ -53,7 +53,7 @@ jobs: fetch-depth: 1 - name: Set up Python 3.8 - uses: actions/setup-python@v2 + uses: actions/setup-python@v1 with: python-version: 3.8 From 581f2fc62915857e764c4081c4309a77919dc854 Mon Sep 17 00:00:00 2001 From: dylan Date: Fri, 3 Jan 2025 12:03:42 -0800 Subject: [PATCH 09/13] yeesh --- .github/workflows/ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9273b480..bb755faa 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,7 +14,7 @@ jobs: fetch-depth: 1 - name: Set up Python 3.8 - uses: actions/setup-python@v1 + uses: actions/setup-python@v2 with: python-version: 3.8 @@ -48,12 +48,12 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v1 with: fetch-depth: 1 - name: Set up Python 3.8 - uses: actions/setup-python@v1 + uses: actions/setup-python@v2 with: python-version: 3.8 From a7689be44a6bd203e1af11389d17c4a42443c32f Mon Sep 17 00:00:00 2001 From: dylan Date: Fri, 3 Jan 2025 12:06:02 -0800 Subject: [PATCH 10/13] this can't be it --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bb755faa..7dfa4897 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,7 +19,7 @@ jobs: python-version: 3.8 - uses: actions/cache@v3 - id: cache + # id: cache with: path: ~/.cache/pip key: ${{ runner.os }}-pip-${{ hashFiles('setup.py') }} From 5173c646a32ed9366d7e7d5a11f3ad92d5d0e23c Mon Sep 17 00:00:00 2001 From: dylan Date: Fri, 3 Jan 2025 12:10:03 -0800 Subject: [PATCH 11/13] if this breaks ill kms --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7dfa4897..bb755faa 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,7 +19,7 @@ jobs: python-version: 3.8 - uses: actions/cache@v3 - # id: cache + id: cache with: path: ~/.cache/pip key: ${{ runner.os }}-pip-${{ hashFiles('setup.py') }} From 544b69f91d3177b6f0e57344e861e9cfe1d58cbb Mon Sep 17 00:00:00 2001 From: dylan Date: Fri, 3 Jan 2025 12:18:08 -0800 Subject: [PATCH 12/13] dark magic dark MAGIC --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bb755faa..2e0898f3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,7 +19,7 @@ jobs: python-version: 3.8 - uses: actions/cache@v3 - id: cache + id: pip-cache with: path: ~/.cache/pip key: ${{ runner.os }}-pip-${{ hashFiles('setup.py') }} @@ -29,7 +29,7 @@ jobs: - name: Install dev dependencies run: | python -m pip install -e .[dev] - if: steps.cache.outputs.cache-hit != 'true' + if: steps.pip-cache.outputs.cache-hit != 'true' - name: Check formatting with black run: | From 1077a7187d56c7eeac18aedb847118be868e5ed0 Mon Sep 17 00:00:00 2001 From: dylan Date: Fri, 3 Jan 2025 12:22:21 -0800 Subject: [PATCH 13/13] im giving up on my dreams --- .github/workflows/ci.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2e0898f3..4b1e80c6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,7 +19,6 @@ jobs: python-version: 3.8 - uses: actions/cache@v3 - id: pip-cache with: path: ~/.cache/pip key: ${{ runner.os }}-pip-${{ hashFiles('setup.py') }} @@ -29,7 +28,7 @@ jobs: - name: Install dev dependencies run: | python -m pip install -e .[dev] - if: steps.pip-cache.outputs.cache-hit != 'true' + if: steps.cache.outputs.cache-hit != 'true' - name: Check formatting with black run: | @@ -48,7 +47,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 with: fetch-depth: 1