-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (39 loc) · 1.25 KB
/
ci.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: CI
on:
push:
branches: [main]
pull_request: {}
workflow_dispatch: {}
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#concurrency
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
env:
COLUMNS: "120"
FORCE_COLOR: "1"
PYTHONUNBUFFERED: "1"
jobs:
self-check:
name: Run hooks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.13"
cache: pip
cache-dependency-path: .goose/**/manifest.json
check-latest: true
- name: Environment cache
uses: actions/cache@v4
with:
path: ~/.cache/goose
key: ${{ runner.os }}-goose-3.13-${{ hashFiles('.goose/**/manifest.json') }}
restore-keys: |
${{ runner.os }}-goose-3.13
${{ runner.os }}-goose
- run: python3 -m pip install --require-hashes --no-dependencies -r requirements.txt
- run: python3 -m pip install --no-dependencies .
# Note: this is important to discover when Dependabot is attempting to break things.
- run: python3 -m pip check
- run: time python -X dev -m goose run --select=all --delete-orphan-environments