Skip to content

Commit a971f09

Browse files
Merge pull request #13 from abhishek72850/minor-110-20230901
1. Added Tests and coverage 2. Improved Indexing 3. Fixed Indexing on Linux and windows 4. Fixed import issues on linux
2 parents 4269aa2 + 8e48ee5 commit a971f09

21 files changed

+1129
-66
lines changed

.coveragerc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[run]
2+
include = */src/*
3+
omit = *tests*

.github/workflows/test.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: test
2+
3+
on: [push]
4+
5+
env:
6+
PACKAGE: PyRock
7+
8+
jobs:
9+
run-tests:
10+
strategy:
11+
fail-fast: false
12+
matrix:
13+
st-version: [4]
14+
os: ["ubuntu-latest", "windows-latest"]
15+
runs-on: ${{ matrix.os }}
16+
steps:
17+
- uses: actions/checkout@v3
18+
- uses: SublimeText/UnitTesting/actions/setup@v1
19+
with:
20+
sublime-text-version: ${{ matrix.st-version }}
21+
package-name: ${{ env.PACKAGE }}
22+
- uses: SublimeText/UnitTesting/actions/run-tests@v1
23+
- name: Upload Code Coverage
24+
if: github.ref == 'refs/heads/master'
25+
uses: codecov/codecov-action@v3
26+
env:
27+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
28+
with:
29+
files: ./coverage.xml
30+

.gitignore

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ htmlcov/
4444
.coverage.*
4545
.cache
4646
nosetests.xml
47-
coverage.xml
47+
# coverage.xml
4848
*.cover
4949
*.py,cover
5050
.hypothesis/
@@ -162,4 +162,6 @@ cython_debug/
162162
~/
163163
exp.py
164164
exp.sh
165-
exp2.py
165+
exp2.py
166+
pyrock.sublime-project
167+
pyrock.sublime-workspace

.python-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.8
1+
3.8

0 commit comments

Comments
 (0)