From 3364e76c3ec5cc65895b7dbf0de5c1cb1aeb171d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C3=BAl=20Pi=C3=B1a?= Date: Tue, 9 Jul 2024 11:44:44 -0500 Subject: [PATCH] update pipelines --- .github/workflows/coverage.yml | 12 ++++++------ .github/workflows/main.yml | 7 ++----- .github/workflows/package.yml | 14 +++++--------- 3 files changed, 13 insertions(+), 20 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 37ecfbc..38fe7dc 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -1,9 +1,7 @@ name: Publish Test Coverage - on: push: branches: [ main ] - jobs: build: runs-on: ${{ matrix.platform }} @@ -11,11 +9,10 @@ jobs: matrix: platform: [ubuntu-latest] python-version: ['3.10'] - steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - name: Install Dependencies @@ -26,4 +23,7 @@ jobs: - name: Run Tests run: poetry run python -m scripts.coverage - name: Publish Coverage - uses: codecov/codecov-action@v3 \ No newline at end of file + uses: codecov/codecov-action@v4 + with: + fail_ci_if_error: true + token: ${{ secrets.CODECOV_TOKEN }} \ No newline at end of file diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ef5d367..22c79e9 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,11 +1,9 @@ name: CI - on: push: branches: [ main ] pull_request: branches: [ main ] - jobs: build: runs-on: ${{ matrix.platform }} @@ -13,11 +11,10 @@ jobs: matrix: platform: [ubuntu-latest, macos-latest] python-version: ['3.10', '3.11', '3.12'] - steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - name: Install Dependencies diff --git a/.github/workflows/package.yml b/.github/workflows/package.yml index 1a594f8..45b7223 100644 --- a/.github/workflows/package.yml +++ b/.github/workflows/package.yml @@ -1,10 +1,8 @@ name: Publish Package - on: push: tags: - '*' - jobs: build: runs-on: ${{ matrix.platform }} @@ -12,11 +10,12 @@ jobs: matrix: platform: [ubuntu-latest] python-version: ['3.10'] - + permissions: + id-token: write steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - name: Install Dependencies @@ -27,7 +26,4 @@ jobs: - name: Run Build run: poetry build - name: Publish Package - uses: pypa/gh-action-pypi-publish@release/v1 - with: - user: __token__ - password: ${{ secrets.PYPI_API_TOKEN }} \ No newline at end of file + uses: pypa/gh-action-pypi-publish@release/v1 \ No newline at end of file