-
Notifications
You must be signed in to change notification settings - Fork 3
73 lines (59 loc) · 1.79 KB
/
rebuild.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
name: Rebuild
on:
schedule:
- cron: 30 2 * * *
env:
IN_CI: '1'
jobs:
rebuild:
name: Rebuild
runs-on: ubuntu-24.04
timeout-minutes: 15
strategy:
fail-fast: false
matrix:
branch:
- release_4
- '5.0'
- '5.1'
- '5.2'
steps:
# Remove Python packages with wrong version
- run: sudo apt-get remove python3-debian python3-distro-info
- run: sudo apt-get update
- run: sudo apt-get install --yes libxslt1-dev libxml2-dev
- run: docker system prune --all --force
- uses: actions/checkout@v4
with:
ref: ${{ matrix.branch }}
- uses: camptocamp/initialise-gopass-summon-action@v2
with:
ci-gpg-private-key: ${{secrets.CI_GPG_PRIVATE_KEY}}
github-gopass-ci-token: ${{secrets.GOPASS_CI_GITHUB_TOKEN}}
patterns: pypi docker
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Check .tool-versions file existence
id: tool-versions
uses: andstor/file-existence-action@v3
with:
files: .tool-versions
- uses: asdf-vm/actions/install@v3
if: steps.tool-versions.outputs.files_exists == 'true'
- run: cat /tmp/python-build.*.log
if: failure()
- run: python --version
- run: echo "${HOME}/.local/bin" >> ${GITHUB_PATH}
- run: python3 -m pip install --user --requirement=ci/requirements.txt
- name: Checks
run: c2cciutils-checks
- name: Pull
run: make pull
- name: Build
run: make build
- run: pip install --editable . || true
- name: Acceptance
run: make acceptance
- name: Publish
run: c2cciutils-publish --type=rebuild --branch=${{ matrix.branch }}