Merge pull request #24 from Patarimi/reformat #54
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow will install Python dependencies, run tests and lint with a single version of Python | |
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python | |
name: Python application | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
permissions: | |
contents: read | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install poetry | |
run: pipx install poetry | |
- name: Set up Python 3.10 | |
uses: actions/setup-python@v3 | |
with: | |
python-version: "3.10" | |
cache: 'poetry' | |
- name: Install Dependencies | |
run: | | |
python -m pip install --upgrade pip | |
poetry install --with dev,doc | |
- name: Restore PDK Directory | |
id: pdk-restore | |
uses: actions/cache/restore@v3 | |
with: | |
path: | | |
pdk/ | |
key: ${{ runner.os }}-pdk-${{ hashFiles('**/hades/techno.yml') }} | |
- name: Install PDK | |
run: | | |
poetry run hades pdk install sky130 | |
poetry run hades pdk install gf180mcu | |
- if: ${{ steps.pdk-restore.cache-hit == 'true' }} | |
name: Save PDK Directory | |
id: pdk-save | |
uses: actions/cache/save@v3 | |
with: | |
path: | | |
pdk/ | |
key: ${{ steps.pdk-restore.outputs.cache-primary-key }} | |
- name: Test with Pytest | |
run: | | |
poetry run pytest |