Skip to content

Commit

Permalink
Merge pull request #13 from abhishek72850/minor-110-20230901
Browse files Browse the repository at this point in the history
1. Added Tests and coverage
2. Improved Indexing
3. Fixed Indexing on Linux and windows
4. Fixed import issues on linux
  • Loading branch information
abhishek72850 committed Oct 7, 2023
2 parents 4269aa2 + 8e48ee5 commit a971f09
Show file tree
Hide file tree
Showing 21 changed files with 1,129 additions and 66 deletions.
3 changes: 3 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[run]
include = */src/*
omit = *tests*
30 changes: 30 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: test

on: [push]

env:
PACKAGE: PyRock

jobs:
run-tests:
strategy:
fail-fast: false
matrix:
st-version: [4]
os: ["ubuntu-latest", "windows-latest"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: SublimeText/UnitTesting/actions/setup@v1
with:
sublime-text-version: ${{ matrix.st-version }}
package-name: ${{ env.PACKAGE }}
- uses: SublimeText/UnitTesting/actions/run-tests@v1
- name: Upload Code Coverage
if: github.ref == 'refs/heads/master'
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
files: ./coverage.xml

6 changes: 4 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ htmlcov/
.coverage.*
.cache
nosetests.xml
coverage.xml
# coverage.xml
*.cover
*.py,cover
.hypothesis/
Expand Down Expand Up @@ -162,4 +162,6 @@ cython_debug/
~/
exp.py
exp.sh
exp2.py
exp2.py
pyrock.sublime-project
pyrock.sublime-workspace
2 changes: 1 addition & 1 deletion .python-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.8
3.8
Loading

0 comments on commit a971f09

Please sign in to comment.