Skip to content

Commit

Permalink
ci: install dependencies with Poetry
Browse files Browse the repository at this point in the history
  • Loading branch information
sethfischer committed Jun 10, 2021
1 parent f2d74ab commit c901714
Show file tree
Hide file tree
Showing 3 changed files with 249 additions and 7 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,24 +8,29 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest]
python-version: [3.7]
python-version: [3.8]
projects:
- "project-01"
- "project-02"
- "project-03"
- "project-04"
- "project-05"
runs-on: ${{ matrix.os }}
env:
POETRY_VIRTUALENVS_CREATE: false
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
- name: Install Poetry
run: |
python -m pip install --upgrade pip
pip install -U https://github.com/platformio/platformio/archive/develop.zip
curl -fsS -o get-poetry.py https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py
python get-poetry.py -y
echo "$HOME/.poetry/bin" >> $GITHUB_PATH
- name: Install dependencies
run: poetry install --no-interaction
- name: Build projects
run: |
platformio run -d ${{ matrix.projects }}
poetry run platformio run -d ${{ matrix.projects }}

0 comments on commit c901714

Please sign in to comment.