Skip to content

Commit

Permalink
workflows: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sinaatalay committed Jun 19, 2024
1 parent 90eba3d commit 6a07d5d
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 6 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/deploy-docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

- name: Install Hatch
uses: pypa/hatch@install

- name: Store cache ID
run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
Expand All @@ -31,5 +34,4 @@ jobs:
- name: Deploy documentation
run: |
pip install hatch
hatch run docs:deploy
4 changes: 3 additions & 1 deletion .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,16 @@ jobs:
with:
python-version: "3.12"

- name: Install Hatch
uses: pypa/hatch@install

- name: Check if the release tag matches the version
uses: samuelcolvin/[email protected]
with:
version_file_path: rendercv/__init__.py

- name: Build
run: |
pip install hatch
hatch build
- name: Upload package to PyPI
Expand Down
14 changes: 10 additions & 4 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,11 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

- name: Install Hatch
uses: pypa/hatch@install

- name: Lint with Ruff
run: |
pip install hatch
hatch run lint
continue-on-error: true

Expand All @@ -50,11 +52,13 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

- name: Install Hatch
uses: pypa/hatch@install

- name: Test
run: |
pip install hatch
hatch run test:run-with-coverage
hatch run test:coverage run -m pytest
mv .coverage .coverage.${{ matrix.python-version }}.${{ matrix.os }}
- name: Store coverage files
Expand Down Expand Up @@ -84,9 +88,11 @@ jobs:
name: coverage
path: coverage

- name: Install Hatch
uses: pypa/hatch@install

- name: Combine coverage files
run: |
pip install hatch
hatch run test:coverage combine coverage
hatch run test:coverage report
hatch run test:coverage html --show-contexts --title "RenderCV coverage for ${{ github.sha }}"
Expand Down

0 comments on commit 6a07d5d

Please sign in to comment.