Skip to content

Commit

Permalink
ci: 👷 pipx and cache for poetry added
Browse files Browse the repository at this point in the history
Signed-off-by: Onuralp SEZER <thunderbirdtr@fedoraproject.org>
  • Loading branch information
onuralpszr committed Sep 24, 2023
1 parent ba3a32c commit 1b26e6c
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,22 @@ jobs:
python-version: ['3.8', '3.9', '3.10', '3.11']

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Instal poetry for Python ${{ matrix.python-version }}
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade poetry
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'poetry'

- name: Setup an environment for Python ${{ matrix.python-version }}
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade poetry
poetry config virtualenvs.create false
poetry install
run: poetry install

- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
Expand Down

0 comments on commit 1b26e6c

Please sign in to comment.