Skip to content

Commit

Permalink
Merge pull request #83 from axiomhq/update-ci
Browse files Browse the repository at this point in the history
update ci to not skip test when publish
  • Loading branch information
bahlo authored Oct 2, 2023
2 parents d68c6e1 + 73f29e1 commit 24770fc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,12 @@ 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.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
Expand Down Expand Up @@ -62,6 +63,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
Expand All @@ -74,4 +76,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 }}"

0 comments on commit 24770fc

Please sign in to comment.