Skip to content

Add an autogenerated http_user field to the host table. #89

Add an autogenerated http_user field to the host table.

Add an autogenerated http_user field to the host table. #89

Workflow file for this run

# badge: https://github.com/nsupdate-info/nsupdate.info/workflows/CI/badge.svg?branch=master
name: CI
on:
push:
branches: [ master ]
paths:
- '**.py'
- '**.yml'
- '**.cfg'
- '**.ini'
- 'requirements.d/*'
- '!docs/**'
pull_request:
branches: [ master ]
paths:
- '**.py'
- '**.yml'
- '**.cfg'
- '**.ini'
- 'requirements.d/*'
- '!docs/**'
jobs:
lint:
runs-on: ubuntu-24.04
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.12
- name: Lint with flake8
run: |
pip install flake8 flake8-pyproject
flake8 src scripts conftest.py
tox:
needs: lint
strategy:
fail-fast: true
matrix:
include:
- os: ubuntu-22.04
python-version: '3.8'
toxenv: py38
- os: ubuntu-22.04
python-version: '3.9'
toxenv: py39
- os: ubuntu-22.04
python-version: '3.10'
toxenv: py310
- os: ubuntu-24.04
python-version: '3.11'
toxenv: py311
- os: ubuntu-24.04
python-version: '3.12'
toxenv: py312
env:
TOXENV: ${{ matrix.toxenv }}
DJANGO_SETTINGS_MODULE: nsupdate.settings.dev
runs-on: ${{ matrix.os }}
timeout-minutes: 40
steps:
- uses: actions/checkout@v4
with:
# just fetching 1 commit is not enough for setuptools-scm, so we fetch all
fetch-depth: 0
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Cache pip
uses: actions/cache@v4
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('requirements.d/dev.txt') }}
restore-keys: |
${{ runner.os }}-pip-
${{ runner.os }}-
- name: Install and configure bind
run: |
bash scripts/ci/install-bind.sh
- name: Install Python tools and tox
run: |
python -m pip install --upgrade pip setuptools wheel tox
- name: run tox env
run: |
tox --skip-missing-interpreters
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
env:
OS: ${{ runner.os }}
python: ${{ matrix.python-version }}
with:
token: ${{ secrets.CODECOV_TOKEN }}
env_vars: OS, python