Skip to content

Commit

Permalink
ci: prettify CI workflow files
Browse files Browse the repository at this point in the history
  • Loading branch information
rien333 committed Dec 12, 2024
1 parent eadc786 commit 1c5cf30
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@ jobs:
with:
python-version: '3.11'

- name: Install dependencies
run: pip install pytest pytest-cov .
- name: Install mdto.py and dependencies
run: |
pip install pytest pytest-cov .
- name: Run tests
run: pytest --cov --cov-report=xml
Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,20 @@ jobs:
runs-on: ubuntu-latest # this is the only distro available 🙃

steps:
- uses: actions/checkout@v4
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-python@v5

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'

- name: Install mdto.py and dependencies
run: |
python -m pip install --upgrade pip
pip install pytest # pytest ≠ project dep, so add it here
pip install .
- name: Run tests
run: pytest

0 comments on commit 1c5cf30

Please sign in to comment.