diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e82d9e6..ef04367 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -24,7 +24,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v7 with: - python-version: '3.10' + python-version: '3.x' - name: Install build dependencies run: | diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..2d4e42c --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,18 @@ +name: Lint + +on: [push, pull_request, workflow_dispatch] + +permissions: {} + +env: + FORCE_COLOR: 1 + +jobs: + lint: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v7 + with: + persist-credentials: false + - uses: j178/prek-action@v3.1.1 diff --git a/.github/workflows/run-tests.yml b/.github/workflows/test.yml similarity index 72% rename from .github/workflows/run-tests.yml rename to .github/workflows/test.yml index 7312c39..0c762a7 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/test.yml @@ -1,8 +1,13 @@ ---- -name: Run tests +name: Test on: [push, pull_request, workflow_dispatch] +permissions: {} + +env: + FORCE_COLOR: 1 + PIP_DISABLE_PIP_VERSION_CHECK: 1 + jobs: tests: runs-on: ubuntu-latest @@ -14,7 +19,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v7 with: - python-version: '3.11' + python-version: '3.x' - name: Install build dependencies run: | @@ -23,7 +28,3 @@ jobs: - name: Fetch latest packages data and build the website run: | make generate - - - name: Check files against the pre-commit config - run: | - pre-commit run --all-files --show-diff-on-failure diff --git a/requirements.txt b/requirements.txt index e278a35..5c3436c 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,3 @@ -pre-commit==4.7.0 pytz==2026.6 requests==2.34.2 requests-cache==1.3.3