Skip to content

Commit

Permalink
Reorder actions in order to use cache
Browse files Browse the repository at this point in the history
  • Loading branch information
ThirVondukr committed Aug 26, 2023
1 parent acfb72f commit 61ee9af
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,29 +7,29 @@ jobs:
matrix:
python-version:
- 3.11.4
job:
- mypy .
- black --check .
- ruff check .
- |
pdm run coverage run
pdm run coverage report -m
pdm run coverage xml
# job:
# - mypy .
# - black --check .
# - ruff check .
# - |
# pdm run coverage run
# pdm run coverage report -m
# pdm run coverage xml

steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install PDM
run: |
pip install pdm
pdm sync --clean
- name: Cache PIP
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: pip-${{ matrix.pyton-version }}-hashFiles('pdm.lock')
- name: Install PDM
run: |
pip install pdm
pdm sync --clean
- run: pdm run ${{ matrix.job }}
8 changes: 4 additions & 4 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install PDM
run: |
pip install pdm
pdm sync --clean
- name: Cache PIP
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: pip-${{ matrix.pyton-version }}-hashFiles('pdm.lock')
- name: Install PDM
run: |
pip install pdm
pdm sync --clean
- run: |
pdm run coverage run
Expand Down

0 comments on commit 61ee9af

Please sign in to comment.