diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..8f014de --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,37 @@ +name: Test + +on: + pull_request: + types: [opened, synchronize] + branches: + - master + - staging + +jobs: + test: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: ["3.7"] + fail-fast: false + steps: + - uses: actions/checkout@v3 + - name: setup python + uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + cache: "pip" + cache-dependency-path: pyproject.toml + - uses: actions/cache@v3 + id: cache + with: + path: ${{ env.pythonLocation }} + key: ${{ runner.os }}-python-${{ env.pythonLocation }}-${{ hashFiles('pyproject.toml') }}-test-v03 + - name: Install Dependencies + if: steps.cache.outputs.cache-hit != 'true' + run: python -m pip install -e . + - name: Check import + run: python -c "import memphis" + - run: python -m pip install pre-commit + - run: make pre-commit-install + - run: make lint