Skip to content

Commit

Permalink
Simplify codecov. checkout v4
Browse files Browse the repository at this point in the history
  • Loading branch information
CarloLepelaars committed Sep 30, 2024
1 parent 7199d93 commit d338505
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 15 deletions.
19 changes: 5 additions & 14 deletions .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,14 @@ on:
- master

jobs:
ruff:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

coverage:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.12']

steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
- uses: actions/checkout@v4
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
python-version: '3.12'
- name: Install uv
run: |
curl -LsSf https://astral.sh/uv/install.sh | sh
Expand All @@ -35,7 +26,7 @@ jobs:
run: |
uv pip install 'setuptools[pkg_resources]'
uv pip install -e ".[test]"
- name: Run tests
- name: Run tests with coverage
run: |
uv pip install pytest pytest-cov
pytest -s tests/ --cov=numerblox --cov-report term-missing --cov-report=xml
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy-mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
Expand Down

0 comments on commit d338505

Please sign in to comment.