Skip to content

Commit

Permalink
modified test.yml to do test & linter jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
githubabby committed Sep 4, 2024
1 parent 88debc3 commit 48bb21f
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 26 deletions.
23 changes: 0 additions & 23 deletions .github/workflows/pylint.yml

This file was deleted.

20 changes: 17 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,24 @@
name: test project
name: Linter and test
on:
push:
branches:
- 'dev'
jobs:
linter:
runs-on: ubuntu-latest
steps:
- name: get code
uses: actions/checkout@v4
- name: set up python 3.10
uses: actions/setup-python@v3
with:
python-version: '3.10'
- name: install required modules
run: pip install pylint flask
- name: run test
run: pylint $(git ls-files '*.py')
test:
needs: linter
runs-on: ubuntu-latest
steps:
- name: get code
Expand All @@ -14,7 +28,7 @@ jobs:
with:
python-version: '3.10'
- name: install required modules
run: pip install flask pylint pytest
run: pip install pytest
- name: run test
run: pytest

0 comments on commit 48bb21f

Please sign in to comment.