Update dependency cryptography to v44 (1.1) #7507
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Continuous integration | |
on: | |
pull_request: | |
push: | |
paths-ignore: | |
- 'example-project/**' | |
permissions: | |
actions: write | |
contents: write | |
env: | |
HAS_SECRETS: ${{ secrets.HAS_SECRETS }} | |
PYTHON_KEYRING_BACKEND: keyring.backends.null.Keyring | |
jobs: | |
main: | |
name: Continuous integration | |
runs-on: ubuntu-22.04 | |
timeout-minutes: 10 | |
if: "!startsWith(github.event.head_commit.message, '[skip ci] ')" | |
steps: | |
- run: pip install pyOpenSSL --upgrade | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- 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 | |
if: env.HAS_SECRETS == 'HAS_SECRETS' | |
- run: echo "${HOME}/.local/bin" >> ${GITHUB_PATH} | |
- run: cd c2cciutils; npm install | |
- run: python3 ./setup.py egg_info --no-date bdist_wheel | |
- run: python3 -m pip install --user --force-reinstall dist/*.whl | |
- run: rm -rf dist build | |
- name: Checks | |
run: c2cciutils-checks | |
- name: Build | |
run: make | |
- name: Build example | |
run: (cd example-project/; GITHUB_REPOSITORY=camptocamp/project make) | |
- run: sudo chmod go+rw -R *.egg-info | |
- name: Publish | |
run: c2cciutils-publish | |
if: env.HAS_SECRETS == 'HAS_SECRETS' | |
- run: git diff --exit-code --patch > /tmp/dpkg-versions.patch || true | |
if: failure() | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: Update dpkg versions list.patch | |
path: /tmp/dpkg-versions.patch | |
retention-days: 1 | |
if: failure() | |
- name: Trigger changelog workflow | |
uses: actions/github-script@v7 | |
with: | |
script: |- | |
if (process.env.GITHUB_REF_TYPE == 'tag') { | |
console.log('Trigger changelog'); | |
await github.rest.repos.createDispatchEvent({ | |
owner: 'camptocamp', | |
repo: 'c2cciutils', | |
event_type: 'changelog', | |
}); | |
} | |
k8s: | |
name: Continuous integration | |
runs-on: ubuntu-22.04 | |
timeout-minutes: 20 | |
if: "!startsWith(github.event.head_commit.message, '[skip ci] ')" | |
steps: | |
- run: pip install pyOpenSSL --upgrade | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- run: echo "${HOME}/.local/bin" >> ${GITHUB_PATH} | |
- run: cd c2cciutils; npm install | |
- run: python3 ./setup.py egg_info --no-date bdist_wheel | |
- run: python3 -m pip install --user --force-reinstall dist/*.whl | |
- run: rm -rf dist build | |
- name: Install | |
run: c2cciutils-k8s-install | |
- name: Checks | |
run: c2cciutils-checks | |
- name: Create DB | |
run: c2cciutils-k8s-db --script=test/init.sql | |
- run: kubectl run test-pod --restart=Never --namespace=default --image=busybox --command -- tail -f /dev/null | |
- name: Wait | |
run: c2cciutils-k8s-wait | |
- name: Logs | |
run: c2cciutils-k8s-logs | |
if: always() | |
- name: Clean the database | |
run: c2cciutils-k8s-db --cleanup | |
if: always() |