diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b548ba4..7b51ef9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,19 +3,17 @@ on: push: pull_request: jobs: - validate: + test: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 with: - python-version: '3.12' + python-version: "3.12" cache: pip - - run: python -m pip install -e '.[dev]' - - run: ./scripts/validate.sh - - run: docker build -t endpoint-monitor:${{ github.sha }} . - - run: | - docker run -d --name endpoint-monitor -p 8000:8000 endpoint-monitor:${{ github.sha }} - for i in $(seq 1 20); do curl -fsS http://127.0.0.1:8000/healthz && exit 0; sleep 1; done - docker logs endpoint-monitor - exit 1 + - run: pip install -e '.[dev]' + - run: ruff format --check . + - run: ruff check . + - run: mypy src + - run: pytest -q + - run: docker build -t endpoint-monitor .