Skip to content

Commit

Permalink
🎡 Unified pipeline, add badges.
Browse files Browse the repository at this point in the history
  • Loading branch information
asaf-kali committed Jan 12, 2024
1 parent 6fe3fd8 commit 69e55bc
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 29 deletions.
29 changes: 28 additions & 1 deletion .github/workflows/lint.yml → .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
name: Lint
name: Pipeline

on:
push:

jobs:

# Lint

check-ruff:
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -56,3 +59,27 @@ jobs:
- name: Run pylint
run: |
make check-pylint
# Test

test:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Set up python 3.10
uses: actions/setup-python@v4
with:
cache: "pip"
python-version: "3.10"
- name: Install dependencies
run: |
make install-ci
make install-test
- name: Run tests
run: |
make cover-xml
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
26 changes: 0 additions & 26 deletions .github/workflows/tests.yml

This file was deleted.

8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
# Codenames Solvers

[![Tests](https://github.com/asaf-kali/codenames-solvers/actions/workflows/tests.yml/badge.svg)](https://github.com/asaf-kali/codenames-solvers/actions/workflows/tests.yml)
[![Pipeline](https://github.com/asaf-kali/codenames-solvers/actions/workflows/pipeline.yml/badge.svg)](https://github.com/asaf-kali/codenames-solvers/actions/workflows/pipeline.yml)
[![codecov](https://codecov.io/gh/asaf-kali/codenames-solvers/graph/badge.svg?token=IC3M4G19B6)](https://codecov.io/gh/asaf-kali/codenames-solvers)
[![Lint](https://github.com/asaf-kali/codenames-solvers/actions/workflows/lint.yml/badge.svg)](https://github.com/asaf-kali/codenames-solvers/actions/workflows/lint.yml)
[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)
[![Code style: black](https://img.shields.io/badge/code%20style-black-111111.svg)](https://github.com/psf/black)
[![Imports: isort](https://img.shields.io/badge/imports-isort-%231674b1)](https://pycqa.github.io/isort/)
[![Type checked: mypy](https://img.shields.io/badge/type%20check-mypy-22aa11)](http://mypy-lang.org/)
[![Linting: pylint](https://img.shields.io/badge/linting-pylint-22aa11)](https://github.com/pylint-dev/pylint)

Code infrastructure and player algorithms (solvers) for the Codenames board game. \
This is the active fork of [mkali-personal/codenames](https://github.com/mkali-personal/codenames).
Expand Down

0 comments on commit 69e55bc

Please sign in to comment.