Skip to content

Commit

Permalink
chore: cleanup build, removed setup.py, shouldn't be needed any more
Browse files Browse the repository at this point in the history
  • Loading branch information
tadams42 committed Jul 9, 2023
1 parent 24eb905 commit 5147219
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 11 deletions.
22 changes: 18 additions & 4 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: tests
name: Run tests


on:
push:
Expand All @@ -9,8 +10,8 @@ on:


jobs:

run_tests:

strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
Expand All @@ -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]

Expand All @@ -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/[email protected]
with:
file: ./coverage.xml
4 changes: 2 additions & 2 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
version: 2

build:
os: ubuntu-20.04
os: ubuntu-22.04
tools:
python: "3.9"
python: "3.11"

python:
install:
Expand Down
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# CHANGELOG

## 0.4.0 (unreleased)

## 0.34.7 (fork-0.34.7) (2023-06-28)

- fix: missing import
Expand Down
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 0 additions & 4 deletions setup.py

This file was deleted.

0 comments on commit 5147219

Please sign in to comment.