diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 0033319..86fc5b5 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -1,4 +1,5 @@ -name: tests +name: Run tests + on: push: @@ -9,8 +10,8 @@ on: jobs: - run_tests: + strategy: matrix: python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"] @@ -20,16 +21,20 @@ jobs: steps: - uses: actions/checkout@v3 + - name: "📦 set up 🐍 ${{ matrix.python-version }}" uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} cache: 'pip' cache-dependency-path: pyproject.toml + - name: "📦 ensure latest 🐍 pip" run: python -m pip install --upgrade pip + - name: "📦 ensure 🐍 wheel" run: pip install wheel + - name: "📦 install flask-rest-jsonoapi-next" run: pip install .[tests] @@ -43,12 +48,21 @@ jobs: - name: "run tests with coverage 🔹 🐍 3.9" if: ${{ matrix.python-version == '3.9'}} run: coverage run -m pytest + + - name: "coverage report 🔹 🐍 3.9" + if: ${{ matrix.python-version == '3.9'}} + run: coverage report + - name: "generate coverage xml 🔹 🐍 3.9" if: ${{ matrix.python-version == '3.9'}} - run: coverage xml + run: coverage xml -i + - name: "generate coverage report 🔹 🐍 3.9" if: ${{ matrix.python-version == '3.9'}} run: coverage report + - name: "upload coverage to codecov.io 🔹 🐍 3.9" if: ${{ matrix.python-version == '3.9'}} - uses: codecov/codecov-action@v3 + uses: codecov/codecov-action@v3.1.4 + with: + file: ./coverage.xml diff --git a/.readthedocs.yaml b/.readthedocs.yaml index 35e51a6..704f883 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -5,9 +5,9 @@ version: 2 build: - os: ubuntu-20.04 + os: ubuntu-22.04 tools: - python: "3.9" + python: "3.11" python: install: diff --git a/CHANGELOG.md b/CHANGELOG.md index 2dfa91c..979dbee 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,7 @@ # CHANGELOG +## 0.4.0 (unreleased) + ## 0.34.7 (fork-0.34.7) (2023-06-28) - fix: missing import diff --git a/pyproject.toml b/pyproject.toml index 7caf7fc..9f3e8f0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -2,7 +2,6 @@ # setuptools v64 was first to support `pip install -e` for packages defined using # pyproject.toml (older versions support this, but only for setup.py projects) requires = ["setuptools>=64", "wheel"] -build-backend = "setuptools.build_meta" [project] name = "flask-rest-jsonapi-next" diff --git a/setup.py b/setup.py deleted file mode 100644 index 1abbd06..0000000 --- a/setup.py +++ /dev/null @@ -1,4 +0,0 @@ -import setuptools - -if __name__ == "__main__": - setuptools.setup()