diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f8f3706..7877cdf 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,11 +1,10 @@ -name: Run CI tests +name: run CI test on: push: - branches: - - main - - master + branches: [devel, main, master, wip] pull_request: + workflow_call: env: FORCE_COLOR: "3" @@ -17,29 +16,26 @@ jobs: strategy: fail-fast: false matrix: - os: ['ubuntu-latest', 'macos-latest', 'windows-latest'] + os: [ubuntu-latest, macos-latest, windows-latest] steps: - - name: "checkout repository" - uses: actions/checkout@v3 - - - name: "setup python 3.9" - uses: actions/setup-python@v4 + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 with: python-version: 3.9 - - - name: "setup python 3.11" - uses: actions/setup-python@v4 + - uses: actions/setup-python@v5 with: python-version: 3.11 - - - name: "setup python 3.12" - uses: actions/setup-python@v4 + - uses: actions/setup-python@v5 with: python-version: 3.12 - - name: install nox - run: python -m pip install nox + - name: install requirements + run: python -m pip install nox pre-commit + + - name: run pre-commit + if: ${{ matrix.os == 'ubuntu-latest' }} + run: pre-commit run --all --show-diff-on-failure - name: run tests - run: nox + run: nox \ No newline at end of file