Skip to content

feature: add support for opkg (OpenWrt's package manager) #1558

feature: add support for opkg (OpenWrt's package manager)

feature: add support for opkg (OpenWrt's package manager) #1558

Workflow file for this run

name: Lint & Test
on:
push:
branches:
- 3.x
- 2.x
- 1.x
- 0.x
pull_request:
jobs:
# Linting
#
lint:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.11"
- run: pip install '.[test]'
- run: flake8
type-check:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.11"
- run: pip install '.[test]'
- run: mypy
spell-check:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- name: Check spelling
uses: crate-ci/typos@v1.26.8
# Unit tests
#
unit-test:
needs:
- lint
- type-check
strategy:
matrix:
os: [ubuntu-20.04, ubuntu-latest]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
include:
- os: macos-13
python-version: "3.11"
- os: windows-2022
python-version: "3.11"
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- run: pip install '.[test]'
- run: pytest --cov --disable-warnings
- name: Upload coverage report to codecov
if: ${{ matrix.os == 'ubuntu-20.04' && matrix.python-version == '3.12' }}
uses: codecov/codecov-action@v3
# End-to-end tests
#
end-to-end-test:
needs:
- lint
- type-check
strategy:
matrix:
os: [ubuntu-20.04, ubuntu-latest]
test-name: [local, ssh, docker]
include:
- os: macos-latest
test-name: local
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.11"
- run: pip install '.[test]'
- run: pytest -m end_to_end_${{ matrix.test-name }}
# Finally, single jon to check if all completed, for use in protected branch
#
tests-done:
if: ${{ always() }}
needs:
- lint
- type-check
- unit-test
- end-to-end-test
runs-on: ubuntu-latest
steps:
- uses: matrix-org/done-action@v3
with:
needs: ${{ toJSON(needs) }}