Skip to content

Commit

Permalink
RF: Apply new tests/docs structure
Browse files Browse the repository at this point in the history
  • Loading branch information
Todd OST committed Apr 19, 2024
1 parent 443b4c7 commit b2a1328
Show file tree
Hide file tree
Showing 123 changed files with 220 additions and 977 deletions.
17 changes: 5 additions & 12 deletions .github/workflows/docs_md.yaml → .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,24 +16,17 @@ jobs:
with:
python-version: "3.10"

- name: Install psychopy
run: |
pip install --upgrade pip
pip install wheel six attrdict3
pip install psychopy
- name: Install package and dependencies
run: |
python3 -m pip install -e .[docs-mkdocs]
python3 -m pip install -e .[docs]
- name: Rebuild API and soft build pages
- name: Build docs
run: |
python3 "docs_mkdocs/generateAPI.py"
python3 "docs_mkdocs/generatePages.py"
sphinx-build docs_src docs -b dirhtml
- name: Build docs
- name: Bypass Jekyll
run: |
mkdocs build
echo "" > docs/.nojekyll
- name: Commit
run: |
Expand Down
59 changes: 59 additions & 0 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: Run tests

on:
workflow_dispatch: # manual
pull_request:
branches: [ main ]

jobs:
mac-tests:
name: Run tests on Mac
runs-on: macos-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"

- name: Install package and dependencies
run: |
python3 -m pip install -e .[tests]
- name: Run tests
run: |
pytest
linux-tests:
name: Run tests on Linux
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"

- name: Prepare to build wx
run: |
python3 -m pip install wheel six distro attrdict3
sudo apt-get update
sudo apt-get install -y -qq python3-dev libgtk-3-dev
sudo apt-get install -y -qq libgstreamer1.0-0 gstreamer1.0-plugins-base
sudo apt-get install -y -qq libwebkit2gtk-4.0-dev
sudo apt-get install -y -qq libpng-dev libjpeg-dev libtiff-dev libnotify-dev libsm-dev
sudo apt-get install -y -qq libsdl2-dev libsdl2-mixer-2.0-0 libsdl2-image-2.0-0 libsdl2-2.
- name: Install package and dependencies
run: |
python3 -m pip install -e .[tests]
- name: Run tests
run: |
pytest
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,9 @@ ENV/
env.bak/
venv.bak/

# VS Code
*.code-workspace

# Spyder project settings
.spyderproject
.spyproject
Expand Down
7 changes: 0 additions & 7 deletions docs_mkdocs/SUMMARY.md

This file was deleted.

113 changes: 0 additions & 113 deletions docs_mkdocs/builder/components/cedrusButtonBoxComponent.md

This file was deleted.

1 change: 0 additions & 1 deletion docs_mkdocs/builder/components/index.md

This file was deleted.

1 change: 0 additions & 1 deletion docs_mkdocs/coder/index.md

This file was deleted.

43 changes: 0 additions & 43 deletions docs_mkdocs/generateAPI.py

This file was deleted.

Loading

0 comments on commit b2a1328

Please sign in to comment.