diff --git a/.github/workflows/pr-test.yml b/.github/workflows/pr-test.yml new file mode 100644 index 0000000..03740dd --- /dev/null +++ b/.github/workflows/pr-test.yml @@ -0,0 +1,31 @@ +name: Test Pull Requests + +on: + pull_request: + branches: + - main + +jobs: + test: + runs-on: ubuntu-latest + steps: + - name: Check out code + uses: actions/checkout@v2 + + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: 3.11 + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install black isort + + - name: Run linters + run: | + make lint + + - name: Run tests + run: | + make test