Skip to content

Commit

Permalink
update action
Browse files Browse the repository at this point in the history
  • Loading branch information
rvhonorato committed Apr 26, 2024
1 parent 50926b4 commit c011280
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 18 deletions.
19 changes: 2 additions & 17 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: ci
on: push

jobs:
ci:
test:

runs-on: ubuntu-latest
steps:
Expand All @@ -13,30 +13,15 @@ jobs:
with:
python-version: "3.10"

# - name: cache poetry install
# uses: actions/cache@v2
# with:
# path: ~/.local
# key: poetry-1.1.12-0

- uses: snok/install-poetry@v1
with:
version: 1.3.2
virtualenvs-create: true
virtualenvs-in-project: true

# - name: cache deps
# id: cache-deps
# uses: actions/cache@v2
# with:
# path: .venv
# key: pydeps-${{ hashFiles('**/poetry.lock') }}
- run: poetry install --no-interaction --no-root
# if: steps.cache-deps.outputs.cache-hit != 'true'

- run: |
poetry run coverage run -m unittest
poetry run coverage xml
- run: poetry run pytest --cov --cov-report xml:coverage.xml --cov-append -vv --hypothesis-show-statistics

- name: Run codacy-coverage-reporter
uses: codacy/codacy-coverage-reporter-action@v1
Expand Down
4 changes: 3 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,10 @@ freesasa = "2.2.1"
numpy = "^1.22.0"

[tool.poetry.group.test.dependencies]
coverage = "^7.1.0"
pytest = "^8.1.1"
coverage = "^7.4.4"
pytest-cov = "^5.0.0"
hypothesis = "^6.100.1"

[tool.poetry.scripts]
prodigy = "prodigy.predict_IC:main"
Expand Down

0 comments on commit c011280

Please sign in to comment.