Prepare version for 1.0.0 release #317
Workflow file for this run
This file contains hidden or 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: Build and run tests | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| workflow_call: | |
| jobs: | |
| setup: | |
| name: Setup ${{ matrix.python }} on ${{ matrix.os }} | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| python: ['3.9', '3.10', '3.11', '3.12', '3.13'] | |
| os: ['ubuntu-latest', 'windows-latest', 'macos-latest'] | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - uses: ./.github/actions/ci-setup | |
| with: | |
| python-version: ${{ matrix.python }} | |
| - name: Print packages | |
| run: python3 -m pip list | |
| - name: Test installation | |
| run: python3 -c "from ankaios_sdk import Ankaios" | |
| unit_test: | |
| needs: setup | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - uses: ./.github/actions/ci-setup | |
| - name: Run unit tests | |
| id: check | |
| run: python3 run_checks.py --utest | |
| continue-on-error: true | |
| - name: Upload unit test report | |
| uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0 | |
| with: | |
| name: unit-test-report | |
| path: reports/utest | |
| - name: Fail job if check failed | |
| if: steps.check.outcome != 'success' | |
| run: exit 1 | |
| coverage: | |
| needs: setup | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - uses: ./.github/actions/ci-setup | |
| - name: Run coverage | |
| id: check | |
| run: python3 run_checks.py --cov | |
| continue-on-error: true | |
| - name: Upload coverage report | |
| uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0 | |
| with: | |
| name: coverage-report | |
| path: reports/coverage | |
| - name: Fail job if check failed | |
| if: steps.check.outcome != 'success' | |
| run: exit 1 | |
| lint: | |
| needs: setup | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - uses: ./.github/actions/ci-setup | |
| - name: Run lint | |
| id: check | |
| run: python3 run_checks.py --lint | |
| continue-on-error: true | |
| - name: Upload lint report | |
| uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0 | |
| with: | |
| name: pylint-report | |
| path: reports/pylint | |
| - name: Fail job if check failed | |
| if: steps.check.outcome != 'success' | |
| run: exit 1 | |
| codestyle: | |
| needs: setup | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - uses: ./.github/actions/ci-setup | |
| - name: Run pep8 codestyle check | |
| id: check | |
| run: python3 run_checks.py --pep8 | |
| continue-on-error: true | |
| - name: Upload codestyle report | |
| uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0 | |
| with: | |
| name: codestyle-report | |
| path: reports/codestyle | |
| - name: Fail job if check failed | |
| if: steps.check.outcome != 'success' | |
| run: exit 1 | |
| check_docs: | |
| needs: setup | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - uses: ./.github/actions/ci-setup | |
| with: | |
| extras: docs | |
| - name: Generate documentation | |
| run: | | |
| cd docs | |
| make html | |
| cd .. | |
| - name: Upload documentation | |
| uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0 | |
| with: | |
| name: docs_html | |
| path: docs/build/html |