Skip to content

Commit

Permalink
ci: run test on multible python versions
Browse files Browse the repository at this point in the history
  • Loading branch information
NafieAlhilaly committed Jul 18, 2022
1 parent 1d47685 commit 81c2578
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/on_pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,18 @@ jobs:
commitlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: wagoid/commitlint-github-action@v2
codelint:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.10]
python-version: [3.7]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- name: Lint with flake8
run: |
python -m pip install --upgrade pip
Expand All @@ -29,9 +29,13 @@ jobs:
--statistics --exclude .git,__pycache__,__init__.py,test
unittests:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10"]
steps:
- uses: actions/checkout@v2
- name: start the app & run unit tests
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- name: start the app & run unit tests with python ${{ matrix.python-version }}
shell: bash
run: |
python -m pip install --upgrade pip
Expand Down

0 comments on commit 81c2578

Please sign in to comment.