-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
77 additions
and
76 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
--- | ||
name: Python package | ||
|
||
"on": | ||
push: | ||
branches: | ||
- main | ||
- main | ||
pull_request: | ||
schedule: | ||
- cron: '0 6 * * *' # Daily 6AM UTC build | ||
- cron: '0 6 * * *' # Daily 6AM UTC build | ||
|
||
jobs: | ||
build: | ||
|
@@ -19,58 +20,58 @@ jobs: | |
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/[email protected] | ||
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 | ||
- 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/[email protected] | ||
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 |
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
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
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