fix workflows

This commit is contained in:
Sina Atalay
2024-12-10 03:17:01 -05:00
parent e199999b2e
commit b4129ef87e
5 changed files with 2 additions and 49 deletions

View File

@@ -27,11 +27,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: 3.12
- name: Install Hatch
uses: pypa/hatch@install

View File

@@ -49,6 +49,6 @@ jobs:
- name: Generate artifact attestation
uses: actions/attest-build-provenance@v2
with:
subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME}}
subject-name: rendercv/rendercv
subject-digest: ${{ steps.push.outputs.digest }}
push-to-registry: true

View File

@@ -25,11 +25,6 @@ jobs:
with:
submodules: recursive
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install Hatch
uses: pypa/hatch@install

View File

@@ -11,28 +11,6 @@ on:
# The workflow:
jobs:
lint:
name: Lint with Ruff (Py${{ matrix.python-version }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install Hatch
uses: pypa/hatch@install
- name: Lint with Ruff
run: |
hatch run lint
test:
name: Test with Py${{ matrix.python-version }} on ${{ matrix.os }}
@@ -48,16 +26,11 @@ jobs:
with:
submodules: recursive
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install Hatch
uses: pypa/hatch@install
- name: Test
run: hatch run test-and-report
run: hatch run test.${{ matrix.python-version }}:test-and-report
- name: Rename the coverage file
run: mv .coverage .coverage.${{ matrix.python-version }}.${{ matrix.os }}
@@ -79,11 +52,6 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Download coverage files
uses: actions/download-artifact@v4
with:

View File

@@ -18,11 +18,6 @@ jobs:
with:
submodules: recursive
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install Hatch
uses: pypa/hatch@install