diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..9160706 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,25 @@ +name: test +on: [push, pull_request] +jobs: + run-tests: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: ["3.11"] + steps: + - name: clone repo + uses: actions/checkout@v4.1.2 + - name: set up python ${{ matrix.python-version }} + uses: actions/setup-python@v5.1.0 + with: + python-version: ${{ matrix.python-version }} + cache: "pip" + - name: install dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + - name: test with pytest + run: | + pytest --cov=. --cov-report html + +