diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index db085d50d..c625fffbb 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,57 +1,37 @@ name: Python CI - -on: +'on': pull_request_target: branches: - '**' - jobs: run-ci: - runs-on: ${{ matrix.os }} - defaults: - run: - shell: bash - - strategy: - matrix: - # TODO: add windows matrix - os: [macos-latest] - + runs-on: macos-latest steps: - name: Checkout code uses: actions/checkout@v3 + with: + ref: ${{ github.event.pull_request.head.ref }} + repository: ${{ github.event.pull_request.head.repo.full_name }} - name: Set up Python uses: actions/setup-python@v3 with: python-version: '3.10' - - - name: Run tests using the shell script (macOS compatible). - if: matrix.os == 'macos-latest' - run: SKIP_POETRY_SHELL=1 sh install/install_openadapt.sh - - - name: Checkout code - uses: actions/checkout@v3 - - name: Install poetry uses: snok/install-poetry@v1 with: version: 1.5.1 virtualenvs-create: true virtualenvs-in-project: true - - name: Cache deps id: cache-deps uses: actions/cache@v2 with: path: .venv - key: pydeps-${{ hashFiles('**/poetry.lock') }} - + key: 'pydeps-${{ hashFiles(''**/poetry.lock'') }}' - run: poetry install --no-interaction --no-root if: steps.cache-deps.outputs.cache-hit != 'true' - - name: Check formatting with Black run: poetry run black --preview --check . - - name: Run Flake8 - run: poetry run flake8 + run: poetry run flake8 . diff --git a/openadapt/privacy/__init__.py b/openadapt/privacy/__init__.py index e69de29bb..d58acf990 100644 --- a/openadapt/privacy/__init__.py +++ b/openadapt/privacy/__init__.py @@ -0,0 +1,4 @@ +"""Package for the Privacy API. + +Module: __init__.py +""" diff --git a/openadapt/privacy/providers/__init__.py b/openadapt/privacy/providers/__init__.py index e69de29bb..e5e493964 100644 --- a/openadapt/privacy/providers/__init__.py +++ b/openadapt/privacy/providers/__init__.py @@ -0,0 +1,4 @@ +"""Package for the Providers. + +Module: __init__.py +"""