Skip to content

feat(battleship): add battleship #111

feat(battleship): add battleship

feat(battleship): add battleship #111

Workflow file for this run

name: "Tests"
on:
push:
paths:
- "src/**.py"
- "tests/**.py"
- "noxfile.py"
- ".github/workflows/tests.yaml"
- "!src/pyggp/_version.py"
pull_request:
jobs:
nox:
name: "🧪 Nox Tests (Python ${{ matrix.python-version }}, ${{ matrix.os }})"
timeout-minutes: 10
strategy:
fail-fast: false
matrix:
python-version:
- '3.8'
- 'pypy3.8'
- '3.9'
- 'pypy3.9'
- '3.10'
- '3.11'
os: [ ubuntu-latest, macos-latest, windows-latest ]
exclude:
- os: windows-latest
python-version: 'pypy3.8'
- os: windows-latest
python-version: 'pypy3.9'
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v3
- run: pipx install poetry
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'poetry'
- run: poetry install --with ci
- uses: actions/cache@v3
with:
path: .nox
key: ${{ github.ref_name }}-${{ github.workflow }}-${{ github.job }}-${{ runner.os }}-python${{ matrix.python-version }}-.nox-${{ hashFiles('**/noxfile.py', '**/pyproject.toml', '**/poetry.lock') }}
- run: poetry run nox -R --sessions unittests-${{ matrix.python-version }}
- run: poetry run nox -R --sessions doctests-${{ matrix.python-version }}
coverage:
name: "📊 Coverage (Python ${{ matrix.python-version }}, ${{ matrix.os }})"
needs: nox
timeout-minutes: 10
strategy:
matrix:
python-version: [ '3.11' ]
os: [ ubuntu-latest ]
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v3
- run: pipx install poetry
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'poetry'
- run: poetry install --with ci
- uses: actions/cache@v3
with:
path: .nox
key: ${{ github.ref_name }}-${{ github.workflow }}-${{ github.job }}-${{ runner.os }}-python${{ matrix.python-version }}-.nox-${{ hashFiles('**/noxfile.py', '**/pyproject.toml', '**/poetry.lock') }}
- run: poetry run nox -R --session coverage
- uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}