Add cross-platform CI workflow #1
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: CI | |
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| jobs: | |
| test: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: | |
| - ubuntu-latest | |
| - macos-latest | |
| - windows-latest | |
| python-version: | |
| - "3.10" | |
| - "3.11" | |
| - "3.12" | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install package and validation extras | |
| run: python -m pip install ".[validate]" | |
| - name: Check esptool version | |
| run: python -m esptool version | |
| - name: Check module entry point | |
| run: python -m bitaxetool --help | |
| - name: Check console script entry point | |
| run: bitaxetool --help | |
| - name: Run unit tests | |
| run: python -m unittest discover -s tests | |
| - name: Validate sample config | |
| run: | | |
| python -c "from bitaxetool.validation import validate_config; validate_config('tests/fixtures/config.cvs')" |