Skip to content

Commit

Permalink
Merge pull request #11 from proafxin/fix/ci
Browse files Browse the repository at this point in the history
Fix/ci
  • Loading branch information
proafxin authored Jun 16, 2024
2 parents 8ebe37a + a7721a7 commit 0c9876b
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 11 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Tox and Trunk
name: Code check

on:
push:
Expand Down Expand Up @@ -28,15 +28,21 @@ jobs:
uses: actions/setup-python@master
with:
python-version: ${{ matrix.python-version }}
- name: Trunk Check
uses: trunk-io/trunk-action@main

- name: Tox
run: |
python -m pip install --upgrade pip
python -m pip install -U tox
tox
- name: Trunk Check
uses: trunk-io/trunk-action@main
- name: Upload coverage reports to Codecov
- if: ${{ github.event_name == 'push' && matrix.python-version == 3.12 }}
name: Export Coverage XML
run: tox -e coverage

- if: ${{ github.event_name == 'push' && matrix.python-version == 3.12 }}
name: Upload coverage reports to Codecov
uses: codecov/codecov-action@main

with:
Expand Down
2 changes: 1 addition & 1 deletion .trunk/trunk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,5 @@ actions:
enabled:
- trunk-upgrade-available
- trunk-announce
- trunk-check-pre-push
- trunk-fmt-pre-commit
- trunk-check-pre-push
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# Bug Tracker

[![Tox and Trunk](https://github.com/proafxin/bug-tracker/actions/workflows/python-package.yml/badge.svg?branch=develop)](https://github.com/proafxin/bug-tracker/actions/workflows/python-package.yml)

[![Code check](https://github.com/proafxin/bug-tracker/actions/workflows/ci.yml/badge.svg)](https://github.com/proafxin/bug-tracker/actions/workflows/ci.yml)
[![codecov](https://codecov.io/gh/proafxin/bug-tracker/graph/badge.svg?token=WAJ9M1BUL1)](https://codecov.io/gh/proafxin/bug-tracker)

A set of asynchronous APIs to keep track of bugs under stories.
Expand Down
3 changes: 1 addition & 2 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
coverage:
precision: 2
round: up
# trunk-ignore(yamllint/quoted-strings)
range: "85...100"
range: 85...100
status:
patch:
default:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "tracker"
version = "2.1.15"
version = "2.1.16"
description = "A simple bug tracking API"
authors = ["Masum Billal <billalmasum93@gmail.com>"]
license = "LICENSE"
Expand Down
4 changes: 3 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ commands =
poetry install --with dev
poetry run coverage run --source=. -m pytest
poetry run coverage report -m --fail-under=85
poetry run coverage xml -o coverage.xml

[testenv:coverage]
commands = poetry run coverage xml -o coverage.xml

; [testenv:docs-win32]

Expand Down

0 comments on commit 0c9876b

Please sign in to comment.