Skip to content
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.

fix: fail fast if attempting to validate empty hostname #65

fix: fail fast if attempting to validate empty hostname

fix: fail fast if attempting to validate empty hostname #65

Workflow file for this run

on:
push:
branches:
- master
- next
pull_request:
branches:
- master
- next
name: Run tests
jobs:
test:
name: lint and test
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11"]
env:
HTTPOBS_DATABASE_HOST: fakehost
HTTPOBS_DATABASE_PASS: foo
HTTPOBS_DATABASE_USER: bar
steps:
- uses: actions/checkout@v4
- name: Install poetry
run: pipx install poetry
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: "poetry"
- run: poetry install
- uses: actions/cache@v3
with:
path: ~/.cache/pre-commit
key: pre-commit|${{ hashFiles('.pre-commit-config.yaml') }}
- name: Run pre-commit against all files
run: poetry run pre-commit run --all-files
- name: Run nose tests
run: poetry run nosetests httpobs/tests --with-coverage --cover-package=httpobs