Skip to content

Commit

Permalink
ci(gha): fix
Browse files Browse the repository at this point in the history
  • Loading branch information
isac322 committed May 22, 2023
1 parent 95f0c3a commit 81bc618
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
CD:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- name: Install pypa/build
run: >-
Expand Down
21 changes: 6 additions & 15 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,26 +15,17 @@ jobs:
matrix:
python_ver: [ '3.7', '3.8', '3.9', '3.10', '3.11' ]
steps:
- uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v4
- uses: actions/checkout@v3
- name: Install poetry
run: pipx install poetry
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python_ver }}
- uses: actions/cache@v3
with:
path: |
~/.cache/pypoetry/artifacts
~/.cache/pypoetry/cache/repositories
~/.cache/pip
poetry.lock
key: ${{ matrix.python_ver }}-pip-${{ hashFiles('pyproject.toml') }}
restore-keys: |
${{ matrix.python_ver }}-pip-
- uses: abatilo/[email protected]
cache: 'poetry'
- name: Install dependencies
run: |
poetry lock
poetry install --remove-untracked
poetry install --no-root --sync
- name: Lint with flake8
run: |
poetry run flake8 .
Expand Down

0 comments on commit 81bc618

Please sign in to comment.