Merge pull request #798 from jelmer/02e1dependabot/cargo/minijinja-2.3.0 #3748
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: Python package | |
"on": | |
push: | |
branches: | |
- main | |
pull_request: | |
schedule: | |
- cron: '0 6 * * *' # Daily 6AM UTC build | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
python-version: [3.9, '3.10', '3.11', '3.12'] | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
sudo apt -y update | |
sudo apt -y install devscripts bzr protobuf-compiler libapt-pkg-dev \ | |
libgpg-error-dev libgpgme-dev subunit yamllint python3-wheel \ | |
libjs-jquery-datatables postgresql-14 \ | |
postgresql-14-debversion libssl-dev pkg-config codespell libtdb-dev | |
python -m pip install --upgrade pip setuptools setuptools-protobuf \ | |
setuptools-rust wheel mypy-protobuf \ | |
python_apt@git+https://salsa.debian.org/apt-team/python-apt.git@2.5.0 | |
pip install -U -e .[dev,debian] | |
python setup.py develop | |
python setup.py build_ext -i | |
make | |
- name: Style checks (ruff) | |
run: | | |
make ruff PYTHON=python | |
- name: Style checks (djlint) | |
if: always() | |
run: | | |
make djlint PYTHON=python | |
- name: Style checks (yamllint) | |
if: always() | |
run: | | |
make yamllint PYTHON=python | |
- name: Typing checks | |
if: always() | |
run: | | |
make typing PYTHON=python | |
- name: Build | |
if: always() | |
run: | | |
make all PYTHON=python | |
- name: Test suite run | |
run: | | |
make test PYTHON=python | |
env: | |
PYTHONHASHSEED: random | |
- name: codespell | |
run: | | |
codespell | |
- name: Config compat test | |
if: always() | |
run: | | |
git clone https://salsa.debian.org/janitor-team/janitor.debian.net/ \ | |
janitor.debian.net | |
PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python PYTHONPATH=py \ | |
python3 -m janitor.config janitor.debian.net/k8s/janitor.conf |