- name: Translate Repo Name For Build Tools filename_prefix
id: repo-name
run: |
- echo ::set-output name=repo-name::Adafruit-Blinka-displayio
- - name: Set up Python 3.x
- uses: actions/setup-python@v2
+ echo "repo-name=Adafruit-Blinka-displayio" >> $GITHUB_OUTPUT
+ - name: Set up Python 3.11
+ uses: actions/setup-python@v4
with:
- python-version: "3.x"
+ python-version: "3.11"
- name: Versions
run: |
python3 --version
- name: Checkout Current Repo
- uses: actions/checkout@v1
+ uses: actions/checkout@v3
with:
submodules: true
- name: Checkout tools repo
- uses: actions/checkout@v2
+ uses: actions/checkout@v3
with:
repository: adafruit/actions-ci-circuitpython-libs
path: actions-ci
- name: Pre-commit hooks
run: |
pre-commit run --all-files
- - name: Build assets
- run: circuitpython-build-bundles --filename_prefix ${{ steps.repo-name.outputs.repo-name }} --library_location .
- - name: Archive bundles
- uses: actions/upload-artifact@v2
- with:
- name: bundles
- path: ${{ github.workspace }}/bundles/
- name: Build docs
working-directory: docs
run: sphinx-build -E -W -b html . _build/html
- name: Check For pyproject.toml
id: need-pypi
run: |
- echo ::set-output name=pyproject-toml::$( find . -wholename './pyproject.toml' )
+ echo "pyproject-toml=$( find . -wholename './pyproject.toml' )" >> $GITHUB_OUTPUT
- name: Build Python package
if: contains(steps.need-pypi.outputs.pyproject-toml, 'pyproject.toml')
run: |