From 2928e71f887b9d1be24c5c1b2fb627a14a3b095b Mon Sep 17 00:00:00 2001 From: Arthur Pastel Date: Sat, 5 Nov 2022 12:42:18 +0100 Subject: [PATCH] Add tests in the CI --- .github/workflows/ci.yml | 25 ++++++++++++++++++++++++- pyproject.toml | 1 - 2 files changed, 24 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 38aca48..0388452 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,4 +16,27 @@ jobs: python-version: "3.9" - uses: pre-commit/action@v2.0.0 with: - extra_args: --all-files \ No newline at end of file + extra_args: --all-files + + tests: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: + - "3.7" + - "3.8" + - "3.9" + - "3.10" + + steps: + - uses: actions/checkout@v2 + - name: "Set up Python ${{ matrix.python-version }}" + uses: actions/setup-python@v2 + with: + python-version: "${{ matrix.python-version }}" + - name: Install valgrind + run: sudo apt-get install valgrind -y + - name: Install dependencies + run: pip install .[dev] + - name: Run tests + run: pytest diff --git a/pyproject.toml b/pyproject.toml index e4e140e..64c18f3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -40,7 +40,6 @@ dev = [ "flake8 ~= 5.0.4", "mypy ~= 0.961", "pytest ~= 7.0", - "pytest-sugar ~= 0.9.5", "pytest-cov ~= 4.0.0", "ruff ~= 0.0.100", ]