diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6bf48f0..9ada0c8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,7 +21,7 @@ on: # │ │ ┌───────── day of the month (1 - 31) # │ │ │ ┌───────── month (1 - 12 or JAN-DEC) # │ │ │ │ ┌───────── day of the week (0 - 6 or SUN-SAT) - - cron: '0 7 * * *' # Every day at 07:00 UTC + - cron: '0 7 * * 1' # Every Monday at 07:00 UTC concurrency: group: ${{ github.workflow }}-${{ github.ref }} @@ -139,7 +139,7 @@ jobs: pypi_token: ${{ secrets.pypi_token }} notify: - if: always() && github.event_name != 'pull_request' && github.ref_name == 'main' + if: always() && (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch') needs: [publish, cron] runs-on: ubuntu-latest steps: diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6e9bea8..01941d1 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,7 +1,7 @@ repos: # This should be before any formatting hooks like isort - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.4.3" + rev: "v0.4.4" hooks: - id: ruff args: ["--fix"] @@ -32,13 +32,13 @@ repos: args: [ "--write-changes" ] # Run mypy type validation - repo: https://github.com/pre-commit/mirrors-mypy - rev: 'v1.9.0' + rev: 'v1.10.0' hooks: - id: mypy additional_dependencies: [types-setuptools] # Python code formatting - repo: https://github.com/psf/black - rev: 24.4.0 + rev: 24.4.2 hooks: - id: black # Rust code formatting