Skip to content

Commit

Permalink
cache dependencies in GH actions
Browse files Browse the repository at this point in the history
  • Loading branch information
raylu committed Dec 28, 2023
1 parent 4b6712c commit 942981c
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions

name: CI

on:
Expand All @@ -12,12 +10,13 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: set up python 3.x
uses: actions/setup-python@v2
- uses: actions/checkout@v4
- run: pipx install poetry # https://github.com/actions/setup-python/blob/main/docs/advanced-usage.md#caching-packages
- uses: actions/setup-python@v5
with:
python-version: '3.x'
cache: poetry
- name: install python packages
run: pip3 install --quiet poetry && poetry install --with dev --no-interaction
run: poetry install --with dev --no-interaction
- name: black
run: poetry run black --check futaba

0 comments on commit 942981c

Please sign in to comment.