1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-23 19:44:20 +00:00

🧪 Add pytest to the dependencies and GitHub Actions

This commit is contained in:
Steffo 2021-01-10 18:40:20 +01:00
parent 36879aba25
commit 387db2fc70
Signed by: steffo
GPG key ID: 6965406171929D01
2 changed files with 28 additions and 0 deletions

24
.github/workflows/test-package.yml vendored Normal file
View file

@ -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

View file

@ -11,6 +11,10 @@ royalnet = "^6.0.0a36"
psutil = "^5.8.0" psutil = "^5.8.0"
[tool.poetry.dev-dependencies] [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] [build-system]
requires = ["poetry>=0.12"] requires = ["poetry>=0.12"]