Skip to content

Commit

Permalink
Merge pull request #84 from plotly/andrew/circle_ci-to-github_actions
Browse files Browse the repository at this point in the history
Andrew/circle ci to GitHub actions
  • Loading branch information
ayjayt authored Sep 27, 2024
2 parents bf69ffd + 7aa90fa commit 7e79000
Show file tree
Hide file tree
Showing 5 changed files with 56 additions and 75 deletions.
70 changes: 0 additions & 70 deletions .circleci/config.yml

This file was deleted.

48 changes: 48 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: test-wf
on: pull_request
jobs:
test-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v1
- name: Install Dependencies
run: sudo apt-get update && sudo apt-get install chromium-browser
- name: Install devtools
run: ls && pip install .[dev] numpy
- name: diagnostic
run: dtdoctor
- name: test1
run: pytest
- name: test2
run: python app/test1.py
test-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- name: Install Dependencies
run: choco install googlechrome -y --ignore-checksums
- name: Install devtools
run: pip install .[dev] numpy
- name: diagnostic
run: dtdoctor
- name: test1
run: pytest
- name: test2
run: python app/test1.py
test-mac:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- name: Install Dependencies
run: brew install google-chrome
- name: Install devtools
run: pip install .[dev] numpy
- name: diagnostic
run: dtdoctor
- name: test1
run: pytest
- name: test2
run: python app/test1.py
9 changes: 5 additions & 4 deletions devtools/browser.py
Original file line number Diff line number Diff line change
Expand Up @@ -542,10 +542,11 @@ def diagnose():
print(which_browser())
print("Running a very simple test...")
try:
import pip
print(pip.get_installed_distributions())
except ImportError:
print("No pip installed for getting version")
import subprocess, sys # noqa
print(subprocess.check_output([sys.executable, '-m', 'pip', 'freeze']))
print(subprocess.check_output(["git", "describe", "--all", "--tags", "--long", "--always",]))
print(sys.version)
print(sys.version_info)
finally:
pass
async def test():
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ dev = [
]

[project.scripts]
devtools-doctor = "devtools.browser:diagnose"
dtdoctor = "devtools.browser:diagnose"

[tool.ruff.lint]
ignore = ["E701"]
Expand Down
2 changes: 2 additions & 0 deletions tests/test_placeholder.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
def test_placeholder():
pass

0 comments on commit 7e79000

Please sign in to comment.