diff --git a/.github/workflows/lint_and_test.yml b/.github/workflows/lint_and_test.yml index f29d561..7cf7017 100644 --- a/.github/workflows/lint_and_test.yml +++ b/.github/workflows/lint_and_test.yml @@ -15,13 +15,6 @@ jobs: - name: Checkout code uses: actions/checkout@v4 - # - name: Exit if not Pyceaas repository - # run: | - # if [ "${{ github.repository }}" != "PyCeas/Pyceas" ]; then - # echo "Not running in PyCeas repository. Exiting." - # exit 0 - # fi - - name: Set up Python uses: actions/setup-python@v5 with: @@ -31,30 +24,11 @@ jobs: run: | python -m pip install --upgrade pip pip install ruff mypy pygame-ce pytmx - - - name: Check for Python files - id: check_files - run: | - git ls-files '*.py' > files.txt - if [ ! -s files.txt ]; then - echo "No Python files found. Skipping lint and type-check." - fi - name: Run ruff - if: success() run: | - if [ -s files.txt ]; then - ruff check $(cat files.txt) - else - echo "Skipping ruff; no Python files found." - fi + ruff check $(git-ls '*.py') - name: Run mypy - if: success() run: | - if [ -s files.txt ]; then - mypy $(cat files.txt) - else - echo "Skipping mypy; no Python files found." - fi - + mypy main.py \ No newline at end of file