diff --git a/.github/workflows/tests.yml b/.github/workflows/ci.yml similarity index 64% rename from .github/workflows/tests.yml rename to .github/workflows/ci.yml index be41e3c..b577081 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/ci.yml @@ -1,7 +1,24 @@ -name: Tests +name: Pull Request CI on: [ push ] jobs: + linting: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Black + uses: microsoft/action-python@0.7.2 + with: + workdir: . + black: true + python_version: "3.12" + - name: Flake8 + uses: microsoft/action-python@0.7.2 + with: + workdir: . + flake8: true + python_version: "3.12" + pytest: runs-on: ubuntu-latest strategy: diff --git a/.github/workflows/linting.yml b/.github/workflows/linting.yml deleted file mode 100644 index 45e252a..0000000 --- a/.github/workflows/linting.yml +++ /dev/null @@ -1,20 +0,0 @@ -name: Linting -on: [ push ] - -jobs: - linting: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - name: Black - uses: microsoft/action-python@0.7.2 - with: - workdir: . - black: true - python_version: "3.12" - - name: Flake8 - uses: microsoft/action-python@0.7.2 - with: - workdir: . - flake8: true - python_version: "3.12"