Skip to content

Commit 872b2f2

Browse files
committed
Migrate to codacy
1 parent d51c853 commit 872b2f2

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.github/workflows/ci.yml

+4-3
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,11 @@ jobs:
7878
- name: "Run tests"
7979
run: "vendor/bin/phpunit --coverage-clover=coverage.xml"
8080

81-
- name: "Upload coverage reports to Codecov"
82-
uses: "codecov/codecov-action@v4"
81+
- name: "Upload coverage reports to Codacy"
82+
uses: "codacy/codacy-coverage-reporter-action@v1.3.0"
8383
with:
84-
token: ${{ secrets.CODECOV_TOKEN }}
84+
project-token: "${{ secrets.CODACY_PROJECT_TOKEN }}"
85+
coverage-reports: "coverage.xml"
8586

8687
tests:
8788
name: "PHPUnit tests"

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
![Packagist Version](https://img.shields.io/packagist/v/yethee/tiktoken)
44
![Build status](https://img.shields.io/github/actions/workflow/status/yethee/tiktoken-php/ci.yml?branch=master)
5-
[![codecov](https://codecov.io/github/yethee/tiktoken-php/graph/badge.svg)](https://codecov.io/github/yethee/tiktoken-php)
5+
![Code Coverage](https://app.codacy.com/project/badge/Coverage/49ec3803b480478caeca8903b7ff0a69?branch=master)
66
![License](https://img.shields.io/github/license/yethee/tiktoken-php)
77

88
This is a port of the [tiktoken](https://github.com/openai/tiktoken).

0 commit comments

Comments
 (0)