Updated python version to 3.12 #76
Workflow file for this run
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: CI | |
on: [pull_request, push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.10"] | |
steps: | |
- 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: | | |
python -m pip install --upgrade pip | |
python -m pip install codespell isort black flake8 mypy testslide | |
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | |
- name: Check spelling | |
run: | | |
codespell --ignore-words-list="ect,ether,nd,tha" --quiet-level=2 $(find pytcp -name '*.py') | |
codespell --ignore-words-list="ect,ether,nd,tha" --quiet-level=2 $(find examples -name '*.py') | |
codespell --ignore-words-list="ect,ether,nd,tha" --quiet-level=2 $(find tests -name '*.py') | |
- name: Sort includes | |
run: | | |
isort -c --line-length 80 --profile black $(find pytcp -name '*.py') | |
isort -c --line-length 80 --profile black $(find examples -name '*.py') | |
isort -c --line-length 80 --profile black $(find tests -name '*.py') | |
- name: Format code | |
run: | | |
black --check $(find pytcp -name '*.py') | |
black --check $(find examples -name '*.py') | |
black --check $(find tests -name '*.py') | |
- name: Lint | |
run: | | |
flake8 $(find pytcp -name '*.py') | |
flake8 $(find examples -name '*.py') | |
flake8 $(find tests -name '*.py') | |
- name: Type check | |
run: | | |
mypy -p pytcp | |
mypy -p examples | |
mypy -p tests | |
- name: Test unit | |
run: testslide tests/unit/*.py | |
- name: Test integration | |
run: testslide tests/integration/*.py |