Skip to content

Commit

Permalink
Update Ci workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
druzsan committed Feb 8, 2024
1 parent 3d63651 commit fe7f167
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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

0 comments on commit fe7f167

Please sign in to comment.