From 387db2fc707de66ba2146492d3b39f842dab647f Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sun, 10 Jan 2021 18:40:20 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=AA=20Add=20pytest=20to=20the=20depend?= =?UTF-8?q?encies=20and=20GitHub=20Actions?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/test-package.yml | 24 ++++++++++++++++++++++++ pyproject.toml | 4 ++++ 2 files changed, 28 insertions(+) create mode 100644 .github/workflows/test-package.yml diff --git a/.github/workflows/test-package.yml b/.github/workflows/test-package.yml new file mode 100644 index 00000000..297a4996 --- /dev/null +++ b/.github/workflows/test-package.yml @@ -0,0 +1,24 @@ +name: Test package + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + check: + runs-on: ubuntu-latest + steps: + - name: Checkout the repository + uses: actions/checkout@v2 + - name: Install Python 3.9 + uses: actions/setup-python@v2 + with: + python-version: '3.9' + - name: Install Poetry + uses: abatilo/actions-poetry@v2.0.0 + - name: Install development dependencies + run: poetry install + - name: Run pytest + run: poetry run pytest diff --git a/pyproject.toml b/pyproject.toml index 765f011c..996b4ce9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -11,6 +11,10 @@ royalnet = "^6.0.0a36" psutil = "^5.8.0" [tool.poetry.dev-dependencies] +pytest = "^6.1.1" +pytest-asyncio = "^0.14.0" +sphinx = "^3.3.1" +sphinx_rtd_theme = "^0.5.0" [build-system] requires = ["poetry>=0.12"]