From fe7f167bf531f196b1e28be0f7caef6588feba7f Mon Sep 17 00:00:00 2001 From: Alexander Druz Date: Thu, 8 Feb 2024 15:58:01 +0100 Subject: [PATCH] Update Ci workflow --- .github/workflows/ci.yml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3c9ff51..544461d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -5,23 +5,27 @@ on: push jobs: # Check stage check-format: - name: '๐Ÿ” Check Code Formatting' + name: '๐Ÿ” Check Formatting' runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 with: python-version: 3.12 - - run: python -m pip install -IU pytest + - run: python -m pip install -IU pip setuptools wheel + - run: python -m pip install -IUr requirements.txt + - run: python -m pip install -IU black - run: make check-format typecheck: - name: '๐Ÿ” Check Code Types' + name: '๐Ÿ” Check Types' runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 with: python-version: 3.12 + - run: python -m pip install -IU pip setuptools wheel + - run: python -m pip install -IUr requirements.txt - run: python -m pip install -IU mypy - run: make typecheck lint: @@ -32,16 +36,20 @@ jobs: - uses: actions/setup-python@v5 with: python-version: 3.12 + - run: python -m pip install -IU pip setuptools wheel + - run: python -m pip install -IUr requirements.txt - run: python -m pip install -IU ruff - run: make lint # Test stage unit-test: - name: '๐Ÿงช Unit Test' + name: '๐Ÿงช Unit-Test' runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 with: python-version: 3.12 + - run: python -m pip install -IU pip setuptools wheel + - run: python -m pip install -IUr requirements.txt - run: python -m pip install -IU pytest - run: make test