Skip to content

Commit

Permalink
ci: update CI Configurations
Browse files Browse the repository at this point in the history
  • Loading branch information
Zeyan Li 李则言 committed Mar 7, 2024
1 parent 102e3a3 commit 47deb00
Showing 1 changed file with 7 additions and 13 deletions.
20 changes: 7 additions & 13 deletions .github/workflows/pythonpackage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,24 +24,18 @@ jobs:
uses: abatilo/actions-poetry@v2
with:
poetry-version: ${{ matrix.poetry-version }}
- name: Cache pip
uses: actions/cache@v2
with:
path: ~/.cache/pip # This path is specific to Ubuntu
# Look to see if there is a cache hit for the corresponding requirements file
key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }}-${{ hashFiles('requirements-dev.txt') }}
- name: Install dependencies
run: |
poetry config virtualenvs.create false
poetry install --no-root
- name: Test with pytest
run: |
PYTHONPATH=$(realpath .) coverage run -m pytest tests
- name: Genrate Coverage Report
run: |
PYTHONPATH=$(realpath .) coverage report
- name: Coveralls
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
- name: Generate Coverage Report
run: |
coveralls
PYTHONPATH=$(realpath .) coverage xml coverage.xml
- name: Get Cover
uses: orgoro/coverage@v3.1
with:
coverageFile: coverage.xml
token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 47deb00

Please sign in to comment.