diff --git a/.github/workflows/pythonchecksyntax.yml b/.github/workflows/pythonchecksyntax.yml index 33688633..853415d8 100644 --- a/.github/workflows/pythonchecksyntax.yml +++ b/.github/workflows/pythonchecksyntax.yml @@ -16,25 +16,31 @@ jobs: steps: - uses: actions/checkout@v4 + - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} + - name: Install dependencies run: | python -m pip install --upgrade pip pip install -r requirements.txt pip install -r test-requirements.txt + - name: Check style run: | python setup.py check_style + - name: Linter run: | pylint --disable=fixme --disable=duplicate-code \ $(git ls-files '*.py') + - name: Install package run: | python setup.py install + - name: Run tests run: | python pyftdi/tests/toolsimport.py diff --git a/.github/workflows/pythonpackage.yml b/.github/workflows/pythonpackage.yml index 6309f6cf..874cd7da 100644 --- a/.github/workflows/pythonpackage.yml +++ b/.github/workflows/pythonpackage.yml @@ -15,19 +15,23 @@ jobs: steps: - uses: actions/checkout@v4 + - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} + - name: Install dependencies run: | python -m pip install --upgrade pip pip install -r requirements.txt pip install setuptools wheel sphinx sphinx_rtd_theme sphinx_autodoc_typehints + - name: Build package run: | python setup.py bdist python setup.py sdist bdist_wheel + - name: Build documentation run: | mkdir doc