Skip to content

Commit

Permalink
Version 0.2.3 Release (#9)
Browse files Browse the repository at this point in the history
Version 0.2.3 Release
- Added build matrix to cover each major OS (MacOS, Linux, Windows)
- Added coverage badge from codecov
- Edited pytest command in CI to generate a coverage XML report and upload it to codecov
  • Loading branch information
William Lam authored May 11, 2021
1 parent 077e30e commit 46e5cb6
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 5 deletions.
20 changes: 16 additions & 4 deletions .github/workflows/.github_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,14 @@ on:

jobs:
build:
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: [3.7, 3.8, 3.9]

# Reference: https://github.community/t/create-matrix-with-multiple-os-and-env-for-each-one/16895
os: [macos-latest, ubuntu-latest, windows-latest]

steps:
- uses: actions/checkout@v2

Expand All @@ -39,6 +42,8 @@ jobs:
shell: bash
run: poetry config virtualenvs.in-project true

# These cache steps prevent unnecessary full dependency builds from scratch
# and save build time overall.
- name: Set up cache
uses: actions/cache@v2
id: cache
Expand All @@ -51,7 +56,7 @@ jobs:
shell: bash
run: poetry run pip --version >/dev/null 2>&1 || rm -rf .venv

- name: Install dependencies
- name: Install dependencies (if there are new ones)
shell: bash
run: poetry install

Expand All @@ -66,6 +71,13 @@ jobs:
run: |
poetry run mypy .
- name: Test with pytest-cov & Poetry
- name: Run Pytest and generate coverage report
run: |
poetry run pytest --cov-report term-missing --cov=hon_patch_notes_game_bot tests/
poetry run pytest --cov=hon_patch_notes_game_bot tests/ --cov-report=term-missing --cov-report=xml
- name: "Upload coverage report to Codecov"
uses: codecov/codecov-action@v1
with:
files: coverage.xml
fail_ci_if_error: true
verbose: true
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

![Build](https://img.shields.io/github/workflow/status/ElementUser/HoN-Patch-Notes-Game-Bot/Github%20CI?label=Build%3A%20Github%20CI&style=flat-square)

[![codecov](https://codecov.io/gh/ElementUser/HoN-Patch-Notes-Game-Bot/branch/main/graph/badge.svg?token=S0HUUCHDKB)](https://codecov.io/gh/ElementUser/HoN-Patch-Notes-Game-Bot)

This application automates the process of HoN's Patch Notes Guessing Game that is hosted in a thread on the Reddit platform.

Specifically, the bot is intended to create a thread in the [/r/heroesofnewerth subreddit](https://www.reddit.com/r/HeroesofNewerth/).
Expand Down
2 changes: 1 addition & 1 deletion hon_patch_notes_game_bot/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.2.2"
__version__ = "0.2.3"

0 comments on commit 46e5cb6

Please sign in to comment.