This repository has been archived by the owner on Jan 23, 2024. It is now read-only.
ci: Bump Python versions #32
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: build | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [windows-latest, ubuntu-latest] | |
python-version: [3.12] | |
include: | |
- os: ubuntu-latest | |
python-version: 3.11 | |
- os: ubuntu-latest | |
python-version: 3.10 | |
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 flake8 | |
pip install -r requirements-dev.txt | |
pip install . | |
- name: Lint with flake8 | |
run: | | |
flake8 . --ignore=F403,E501,E123,E128,F401,F405,E402,F821,F841,E721,E265,F811,W504,E741 --exclude=docs,build,env | |
- name: Run tests | |
run: | | |
cd unittest | |
python start.py |