From 4bc60606c4d745d1229ad203a0071eef331a5cc2 Mon Sep 17 00:00:00 2001 From: Dmytro Parfeniuk Date: Sun, 21 Jul 2024 23:25:58 +0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=9A=20python=20versions=20matrix=20is?= =?UTF-8?q?=20user=20instead=20of=20tox=20is=20CI=20process?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ci.yml | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 648beab..814f97e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,6 +8,9 @@ on: jobs: code_quality: runs-on: ubuntu-latest + strategy: + matrix: + python-version: [3.8, 3.9, 3.10, 3.11, 3.12] steps: - uses: actions/checkout@v4 @@ -16,8 +19,16 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install tox + pip install -e '.[code_quality]' - - name: Run tox - run: tox + - name: Run tests + run: python -m pytest tests + - name: Run linter + run: python -m ruff check src tests + + - name: Check formatting + run: python -m black --check src tests && python -m isort --check src tests + + - name: Check types + run: python -m mypy src tests