Audit Snyk check/fix release_4 #5240
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: Build | |
on: | |
push: | |
env: | |
IN_CI: "1" | |
jobs: | |
build: | |
runs-on: ubuntu-22.04 | |
timeout-minutes: 15 | |
steps: | |
- 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 | |
- uses: actions/checkout@v1 | |
- 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: asdf-vm/actions/install@v2 | |
- run: cat /tmp/python-build.*.log | |
if: failure() | |
- run: sudo python3 -m pip install --requirement=ci/requirements.txt | |
- name: Checks | |
run: c2cciutils-checks | |
- name: Pull | |
run: make pull | |
- name: Build | |
run: make build | |
- name: Acceptance | |
run: make acceptance | |
- name: Install GDAL | |
run: docker run --rm camptocamp/c2cwsgiutils install-gdal | |
- name: Check Python package | |
run: | | |
sudo apt install --yes python3-setuptools python3-wheel | |
python3 -m pip install --requirement=requirements-publish.txt | |
python3 ./setup.py sdist bdist_wheel | |
twine check dist/* | |
- name: Release | |
run: scripts/publish ${{github.ref}} |