Skip to content

Commit

Permalink
fix(ci): Outdated github action
Browse files Browse the repository at this point in the history
- Updated:
  - checkout action
  - python action
  - codecov action
  • Loading branch information
caniko committed Apr 19, 2024
1 parent 9f2bbd5 commit 7674254
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 16 deletions.
39 changes: 26 additions & 13 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,24 @@ defaults:
jobs:
unit_tests:
strategy:
fail-fast: false
matrix:
python-version: [ "3.9", "3.10", "3.11", "3.12" ]
os: [ ubuntu-latest, windows-latest, macos-latest ]

runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Install poetry
run: pipx install poetry

- name: Setup the Python Environment ${{ matrix.python-version }}
uses: Qwerty-133/python-setup@v1
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
skip-pre-commit: true
cache: "poetry"

- name: Install dependencies
run: |
Expand All @@ -37,7 +41,7 @@ jobs:
poetry run pytest .
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
mypy:
Expand All @@ -48,13 +52,16 @@ jobs:
python-version: [ "3.9", "3.10", "3.11", "3.12" ]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Install poetry
run: pipx install poetry

- name: Setup the Python Environment ${{ matrix.python-version }}
uses: Qwerty-133/python-setup@v1
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
skip-pre-commit: true
cache: "poetry"

- name: Install dependencies
run: |
Expand All @@ -75,13 +82,16 @@ jobs:
python-version: [ "3.9", "3.10", "3.11", "3.12" ]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Install poetry
run: pipx install poetry

- name: Setup the Python Environment ${{ matrix.python-version }}
uses: Qwerty-133/python-setup@v1
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
skip-pre-commit: true
cache: "poetry"

- name: Install dependencies
run: |
Expand All @@ -99,13 +109,16 @@ jobs:
python-version: [ "3.12" ]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Install poetry
run: pipx install poetry

- name: Setup the Python Environment ${{ matrix.python-version }}
uses: Qwerty-133/python-setup@v1
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
skip-pre-commit: true
cache: "poetry"

- name: Install dependencies
run: |
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/upload.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,16 @@ jobs:
python-version: [ "3.12" ]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Install poetry
run: pipx install poetry

- name: Setup the Python Environment ${{ matrix.python-version }}
uses: Qwerty-133/python-setup@v1
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
skip-pre-commit: true
cache: "poetry"

- name: Install dependencies
run: poetry install
Expand Down

0 comments on commit 7674254

Please sign in to comment.