Skip to content

Andrew/circle ci to GitHub actions #84

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 17 commits into from
Sep 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading