update doc #180
This file contains 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: Unit Test | |
on: [push, pull_request] | |
jobs: | |
unit-tests: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] | |
# os: [ubuntu-latest, macOS-latest, windows-latest] | |
os: [ubuntu-latest] | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v3 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: pip install --upgrade keyring==21.4.0 setuptools wheel twine tox | |
- name: Run pylint & codestyle & unit tests | |
run: tox | |
- name: Upload coverage to Codecov | |
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.12' | |
uses: codecov/codecov-action@v3 | |
with: | |
directory: tests/unit/ | |
files: coverage.xml | |
flags: unittest | |
verbose: true | |
- name: Run twine check | |
run: | | |
python setup.py sdist bdist_wheel | |
twine check dist/* |