docs: fix tutorial on how to create a package slice for chisel (#648) #2
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
name: Tests | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
linters: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
submodules: true | |
- name: Install packages | |
run: | | |
sudo apt update | |
sudo apt install -y libapt-pkg-dev aspell aspell-en | |
- name: Set up Python 3.10 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.10" | |
- name: Install python packages and dependencies | |
run: | | |
pip install -U wheel -r requirements-jammy.txt -r requirements.txt -r requirements-dev.txt | |
pip install -e . | |
- name: Run black | |
run: | | |
make test-black | |
- name: Run codespell | |
run: | | |
make test-codespell | |
- name: Run flake8 | |
run: | | |
make test-flake8 | |
- name: Run mypy | |
run: | | |
make test-mypy | |
- name: Run pydocstyle | |
run: | | |
make test-pydocstyle | |
- name: Run pyright | |
run: | | |
sudo snap install --classic node | |
sudo snap install --classic pyright | |
make test-pyright | |
- name: Run pylint | |
run: | | |
make test-pylint | |
- name: Run sphinx-lint | |
run: | | |
make test-sphinx-lint | |
- name: Run shellcheck | |
run: | | |
sudo snap install shellcheck | |
make test-shellcheck | |
- name: Run linkcheck,woke,spelling | |
run: | | |
sudo snap install woke | |
make test-docs | |
tests: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Install dependencies | |
run: | | |
echo "::group::apt-get update" | |
sudo apt-get update | |
echo "::endgroup::" | |
echo "::group::apt-get install..." | |
sudo apt-get install -y python3 python3-dev libapt-pkg-dev libyaml-dev umoci | |
echo "::endgroup::" | |
echo "::group::pip install" | |
python -m pip install -U wheel setuptools pip | |
python -m pip install -U -r requirements.txt -r requirements-dev.txt -r requirements-jammy.txt | |
echo "::endgroup::" | |
- name: Install project | |
run: | | |
python -m pip install -e . | |
- name: Run unit tests | |
run: | | |
make test-units | |
- name: Run integration tests | |
run: | | |
make test-integrations | |