From 46986a77b4ec289aafe1d2012290d5467c1f5e35 Mon Sep 17 00:00:00 2001 From: thecraftman Date: Mon, 2 Oct 2023 13:05:02 +0100 Subject: [PATCH 1/3] update ci to not skip test when publish --- .github/workflows/ci.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 26d36db..f8af5f3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -27,11 +27,11 @@ jobs: - run: poetry install - run: poetry run black --check axiom tests examples - run: poetry run pylint -E axiom tests examples + test-integration: name: Test Integration runs-on: ubuntu-latest - # run integration tests on PRs originating in the upstream repo (non-forks only) - if: github.event.pull_request.head.repo.full_name == github.repository + if: github.event_name != 'pull_request' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository) needs: lint strategy: fail-fast: true @@ -62,6 +62,7 @@ jobs: AXIOM_URL: ${{ secrets[matrix.url] }} AXIOM_TOKEN: ${{ secrets[matrix.token] }} AXIOM_ORG_ID: ${{ secrets[matrix.org_id] }} + publish: name: Publish on PyPi runs-on: ubuntu-latest @@ -74,4 +75,4 @@ jobs: with: python-version: ${{ env.PYTHON_VERSION }} - run: pip install poetry==${{ env.POETRY_VERSION }} - - run: poetry publish --build -u __token__ -p "${{ secrets.PYPI_TOKEN }}" + - run: poetry publish --build -u __token__ -p "${{ secrets.PYPI_TOKEN }}" \ No newline at end of file From 2287781e3dcf830404feb2485191a3a7b6760ae9 Mon Sep 17 00:00:00 2001 From: thecraftman Date: Mon, 2 Oct 2023 13:06:09 +0100 Subject: [PATCH 2/3] add commenting --- .github/workflows/ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f8af5f3..e2bb4c6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -31,6 +31,7 @@ jobs: test-integration: name: Test Integration runs-on: ubuntu-latest + # run integration tests on PRs originating in the upstream repo (non-forks only) if: github.event_name != 'pull_request' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository) needs: lint strategy: From 73f29e1f817d794e16dcedcc01439c642772856f Mon Sep 17 00:00:00 2001 From: Ore-Aruwaji Tola Date: Mon, 2 Oct 2023 15:38:16 +0100 Subject: [PATCH 3/3] Update .github/workflows/ci.yml Co-authored-by: Arne Bahlo --- .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 e2bb4c6..8b76f3b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -32,7 +32,7 @@ jobs: name: Test Integration runs-on: ubuntu-latest # run integration tests on PRs originating in the upstream repo (non-forks only) - if: github.event_name != 'pull_request' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository) + if: github.repository == 'axiomhq/axiom-py' && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository) needs: lint strategy: fail-fast: true