Skip to content

Add project manager (#21) #57

Add project manager (#21)

Add project manager (#21) #57

Workflow file for this run

name: check
on:
push:
branches:
master
paths:
- "OiRunner/**"
- "tests/**"
- "setup.py"
- ".github/workflows/**"
pull_request:
paths:
- "OiRunner/**"
- "tests/**"
- "setup.py"
- ".github/workflows/**"
jobs:
build:
strategy:
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
os: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
timeout-minutes: 60
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install gdb
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt-get update
sudo apt-get install gdb
- name: Install g++
if: matrix.os == 'windows-latest'
run: |
choco install mingw -y --no-progress
$env:PATH += ";C:\tools\mingw64\bin"
set PYTHONIOENCODING=utf-8
- name: Check environment
run: |
g++ --version
gcc --version
gdb --version
- name: Install dependencies in ${{ matrix.python-version }}
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Lint in ${{ matrix.python-version }}
run: |
flake8 OiRunner/ tests/ --count --statistics --max-line-length=127
mypy OiRunner/
- name: tests in ${{ matrix.python-version }}
run: coverage run --source OiRunner -m unittest
- name: Get report in ${{ matrix.python-version }}
run: coverage report
- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}