Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add more differ in rust #847

Merged
merged 4 commits into from
Nov 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
115 changes: 58 additions & 57 deletions .github/workflows/pythonpackage.yml
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:
Expand All @@ -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
Loading
Loading