Merge branch 'main' of https://github.com/andresp/cablemodem-status #108
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
name: Docker Image CI | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.11' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip setuptools wheel | |
pip install .[dev] | |
- name: Test with pytest | |
run: | | |
pip install pytest pytest-cov | |
python -m pytest tests --doctest-modules --junitxml=junit/test-results.xml --cov=docsismodem --cov-report=xml --cov-report=html | |
- name: Build the Docker image | |
run: docker build . --file Dockerfile --tag ci-build:$(date +%s) |