diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..877b167 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,27 @@ +name: test + +on: [push, pull_request] + +jobs: + test: + runs-on: ${{ matrix.os }} + strategy: + matrix: + python-version: ["3.9", "3.10"] + os: [ubuntu-latest, macos-latest, windows-latest] + + steps: + - uses: actions/checkout@v3 + + - uses: actions/setup-python@v3 + with: + python-version: ${{ matrix.python-version }} + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements_dev.txt + python setup.py develop + + - name: Run tests + run: python runtests.py diff --git a/requirements.txt b/requirements.txt index a921c96..f9f8669 100755 --- a/requirements.txt +++ b/requirements.txt @@ -1,6 +1,6 @@ -forbiddenfruit -djangorestframework -pyyaml -uritemplate -cython -djangorestframework-simplejwt +forbiddenfruit>=0.1.4 +djangorestframework>=3.12.4 +pyyaml>=5.3.1,<5.4 +uritemplate>=4.1.1 +cython>=0.29.30 +djangorestframework-simplejwt>=5.2.0 diff --git a/requirements_dev.txt b/requirements_dev.txt index 55b033e..d94c27d 100644 --- a/requirements_dev.txt +++ b/requirements_dev.txt @@ -1 +1,2 @@ -pytest \ No newline at end of file +pytest>=7.1.2 +cython>=0.29.30 \ No newline at end of file