Skip to content

Commit

Permalink
GitHub Actions now sets CI=true
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed Apr 16, 2020
1 parent 97280a0 commit 654229d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
2 changes: 0 additions & 2 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,8 @@ exclude .appveyor.yml
exclude .coveragerc
exclude .editorconfig
exclude .readthedocs.yml
exclude azure-pipelines.yml
exclude codecov.yml
global-exclude .git*
global-exclude *.pyc
global-exclude *.so
prune .azure-pipelines
prune .ci
8 changes: 2 additions & 6 deletions Tests/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,12 +272,8 @@ def on_github_actions():


def on_ci():
# Travis and AppVeyor have "CI"
# Azure Pipelines has "TF_BUILD"
# GitHub Actions has "GITHUB_ACTIONS"
return (
"CI" in os.environ or "TF_BUILD" in os.environ or "GITHUB_ACTIONS" in os.environ
)
# GitHub Actions, Travis and AppVeyor have "CI"
return "CI" in os.environ


def is_big_endian():
Expand Down

0 comments on commit 654229d

Please sign in to comment.