diff options
Diffstat (limited to '')
| -rw-r--r-- | .github/workflows/test.yml (renamed from .github/workflows/python-package-ci.yml) | 37 |
1 files changed, 17 insertions, 20 deletions
diff --git a/.github/workflows/python-package-ci.yml b/.github/workflows/test.yml index b3b884c..98c8fce 100644 --- a/.github/workflows/python-package-ci.yml +++ b/.github/workflows/test.yml @@ -1,25 +1,24 @@ -name: python package ci +name: Test on: [push] jobs: - build: - runs-on: ubuntu-latest + run-tests: + runs-on: ubuntu-22.04 strategy: matrix: - versions: [ - {python: '3.6', poetry: '1.1.15'}, - {python: '3.7', poetry: '1.2.2'}, - {python: '3.8', poetry: '1.2.2'}, - {python: '3.9', poetry: '1.2.2'}, - {python: '3.10', poetry: '1.2.2'}, - {python: '3.11', poetry: '1.2.2'}, - {python: '3.12', poetry: '1.2.2'}, - {python: '3.13', poetry: '1.2.2'}, - ] + versions: + [ + { python: "3.9", poetry: "1.8.4" }, + { python: "3.10", poetry: "1.8.4" }, + { python: "3.11", poetry: "1.8.4" }, + { python: "3.12", poetry: "1.8.4" }, + { python: "3.13", poetry: "1.8.4" }, + ] steps: - - uses: actions/checkout@v3 + - name: Checkout source code + uses: actions/checkout@v4 - name: Set up Poetry run: pipx install poetry==${{ matrix.versions.poetry }} @@ -28,21 +27,19 @@ jobs: uses: actions/setup-python@v5 with: python-version: ${{ matrix.versions.python }} - cache: 'poetry' + cache: "poetry" - name: Install Dependencies - run: | - poetry install -v - poetry run pip install -r requirements-311.txt + run: poetry install -v - name: Install system LIRC run: sudo apt-get install lirc - name: Run tests - run: poetry run pytest -v tests/ --cov=lirc/ --cov-report=xml + run: poetry run task - name: Upload coverage to Codecov - uses: codecov/codecov-action@v1 + uses: codecov/codecov-action@v4 with: token: ${{ secrets.CODECOV_TOKEN }} file: ./coverage.xml |