Skip to content

Commit

Permalink
add comments to ci
Browse files Browse the repository at this point in the history
  • Loading branch information
dec1 committed Jun 20, 2024
1 parent d15abd9 commit 3dbb2dc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,13 @@ jobs:
- name: Check out the repository
uses: actions/checkout@v4

# ---- Set up Python -------------------
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ env.PYTHON_VERSION }}

# ---- Set up dependencies -------------------
- name: Set up dependencies (Linux)
if: runner.os == 'Linux'
run: |
Expand All @@ -41,6 +43,7 @@ jobs:
.\venv_create.cmd ${{ env.PYTHON_VERSION }}
cd ..\..
# ---- Install dependencies -------------------
- name: Install dependencies (Linux)
if: runner.os == 'Linux'
run: |
Expand All @@ -55,6 +58,7 @@ jobs:
.\pip_reqs_install.cmd
cd ..\..
# ---- Tests ----------------------------------
- name: Run tests with pytest (Linux)
if: runner.os == 'Linux'
run: ./prj/venv/bin/pytest test/
Expand All @@ -63,6 +67,7 @@ jobs:
if: runner.os == 'Windows'
run: .\prj\venv\Scripts\pytest.exe test\

# ---- MyPy ----------------------------------
- name: Run type checking with mypy (Linux)
if: runner.os == 'Linux'
run: ./prj/venv/bin/mypy --check-untyped-defs -p test -p src
Expand All @@ -71,6 +76,7 @@ jobs:
if: runner.os == 'Windows'
run: .\prj\venv\Scripts\mypy.exe --check-untyped-defs -p test -p src

# ---- PyLint ----------------------------------
- name: Run linter with pylint (Linux)
if: runner.os == 'Linux'
run: ./prj/venv/bin/python -m pylint --errors-only src test
Expand Down

0 comments on commit 3dbb2dc

Please sign in to comment.