Skip to content

Commit

Permalink
Add __init__.py files to convert the folders to python module.
Browse files Browse the repository at this point in the history
This allows one to run `pytest` in the root folder to trigger all the
tests, instead of needing to modify PYTHONPATH environment variable.
  • Loading branch information
yegle committed Sep 6, 2024
1 parent 48bd483 commit f6c7e10
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/run_pytest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,16 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.9'
python-version: '3.9'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest
pip install requests
- name: Test with pytest
run: PYTHONPATH="${PYTHONPATH}:${pwd}" pytest
run: pytest
Empty file added cloud/__init__.py
Empty file.
Empty file added cloud/aws/__init__.py
Empty file.
Empty file added cloud/aws/bin/__init__.py
Empty file.

0 comments on commit f6c7e10

Please sign in to comment.