diff --git a/.github/workflows/quality.yml b/.github/workflows/quality.yml index 1e96262..ef849b0 100644 --- a/.github/workflows/quality.yml +++ b/.github/workflows/quality.yml @@ -1,30 +1,21 @@ name: Quality -on: - push: - pull_request: - schedule: - - cron: '0 0 * * 0' # weekly +on: push jobs: build: + name: quality runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set up Python - uses: actions/setup-python@v2 + uses: actions/setup-python@v4 with: - python-version: 3.9 - - name: Cache pip - uses: actions/cache@v2 - with: - path: ~/.cache/pip - key: ${{ runner.os }} + python-version: 3.12 - name: Install dependencies run: | python -m pip install --upgrade pip setuptools wheel python -m pip install --upgrade black flake8 - name: Run checks - run: | - make quality + run: make quality diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index b30fc1e..37fc051 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -1,10 +1,6 @@ name: Tests -on: - push: - pull_request: - schedule: - - cron: '0 0 * * 0' # weekly +on: push jobs: build: @@ -30,25 +26,25 @@ jobs: strategy: matrix: python-version: - - 3.8 - - 3.9 - - 3.10 - - 3.11 - - 3.12 + - "3.8" + - "3.9" + - "3.10" + - "3.11" + - "3.12" django: - django32 - django42 + exclude: + - django: django32 + python-version: "3.11" + - django: django32 + python-version: "3.12" steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 + uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} - - name: Cache pip - uses: actions/cache@v2 - with: - path: ~/.cache/pip - key: ${{ runner.os }} - name: Install dependencies run: | python -m pip install --upgrade pip setuptools wheel