Skip to content

Commit

Permalink
only run unit tests for all python versions
Browse files Browse the repository at this point in the history
  • Loading branch information
raymar9 committed Mar 25, 2024
1 parent 4c969aa commit 501aa5e
Showing 1 changed file with 25 additions and 2 deletions.
27 changes: 25 additions & 2 deletions .github/workflows/python-code-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ on:
workflow_dispatch:

jobs:
check_python_code:
run_unit_tests:
runs-on: ubuntu-22.04
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]

name: Running Python code checks with Python ${{ matrix.python-version }}
name: Running unit tests with Python ${{ matrix.python-version }}
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
Expand All @@ -32,6 +32,29 @@ jobs:
run: |
pipenv --python ${{ matrix.python-version }} install --dev
- name: Run unit tests
run: |
pipenv run test
check_python_code:
runs-on: ubuntu-22.04

name: Running Python code checks
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.11"
cache: "pipenv"
- name: Install pipenv
run: |
python -m pip install --upgrade pip pipenv
python --version; python -m pip --version; pipenv --version
- name: Setup project with pipenv
run: |
pipenv --python "3.11" install --dev
- name: Check code style
run: |
pipenv run format_check
Expand Down

0 comments on commit 501aa5e

Please sign in to comment.