diff options
author | 2025-07-15 23:05:08 +0100 | |
---|---|---|
committer | 2025-07-15 23:08:48 +0100 | |
commit | e0270a303844f715f0b71d2580f6c712f9f62d2a (patch) | |
tree | 6786a3db8ab257f9cd68d0f0055c6c5047a643da | |
parent | Update development tooling to use uv (diff) |
Update CI tasks to use uv
-rw-r--r-- | .github/workflows/lint.yaml | 31 |
1 files changed, 7 insertions, 24 deletions
diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index eb8ebd59..9a782496 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -6,37 +6,20 @@ jobs: lint: name: Run linting & tests runs-on: ubuntu-latest - env: - # List of licenses that are compatible with the MIT License and - # can be used in our project - ALLOWED_LICENSES: Apache Software License; - BSD; BSD License; - GNU Library or Lesser General Public License (LGPL); - Historical Permission Notice and Disclaimer (HPND); - ISC License (ISCL); - MIT License; - Mozilla Public License 2.0 (MPL 2.0); - Public Domain; - Python Software Foundation License steps: - name: Checkout repository uses: actions/checkout@v4 - - name: Install Python Dependencies - uses: HassanAbouelela/actions/setup-python@setup-python_v1.6.0 + - name: Install uv + uses: astral-sh/setup-uv@v6 with: - python_version: "3.13" + enable-cache: true + cache-dependency-glob: "uv.lock" + activate-environment: true - # Check all of our dev dependencies are compatible with the MIT license. - # If you added a new dependencies that is being rejected, - # please make sure it is compatible with the license for this project, - # and add it to the ALLOWED_LICENSE variable - - name: Check Dependencies License - run: | - poetry self add poetry-plugin-export - pip-licenses --allow-only="$ALLOWED_LICENSE" \ - --package $(poetry export -f requirements.txt --without-hashes | sed "s/==.*//g" | tr "\n" " ") + - name: Install dependencies + run: uv sync --frozen # Attempt to run the bot. Setting `IN_CI` to true, so bot.run() is never called. # This is to catch import and cog setup errors that may appear in PRs, to avoid crash loops if merged. |