Skip to content

Commit

Permalink
Separate test and linting actions
Browse files Browse the repository at this point in the history
  • Loading branch information
andchiind committed Feb 6, 2024
1 parent acb6b08 commit 71eaa36
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 4 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/perform_linting.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Perform linting

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
python-version: ["3.9", "3.10"]

steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e ".[dev]"
- name: Formatting
run: |
black --check .
mypy --ignore-missing-imports .
4 changes: 0 additions & 4 deletions .github/workflows/test_pythonpackage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,6 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install -e ".[dev]"
- name: Formatting
run: |
black --check .
mypy --ignore-missing-imports .
- name: Test with pytest
run: |
pytest

0 comments on commit 71eaa36

Please sign in to comment.