feat: do not create /bin/java symlink #3395
Workflow file for this run
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 snap install --no-wait ruff | |
sudo snap install --no-wait shellcheck | |
sudo snap install --no-wait woke | |
sudo snap install --no-wait --classic node | |
sudo snap install --no-wait --classic pyright | |
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 mypy | |
run: | | |
make test-mypy | |
- name: Run pyright | |
run: | | |
sudo snap watch --last=install | |
make test-pyright | |
- name: Run ruff | |
run: | | |
sudo snap watch --last=install | |
make test-ruff | |
- name: Run sphinx-lint | |
run: | | |
make test-sphinx-lint | |
- name: Run shellcheck | |
run: | | |
sudo snap watch --last=install | |
make test-shellcheck | |
- name: Run linkcheck,woke,spelling | |
run: | | |
sudo snap watch --last=install | |
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 python3-poetry 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 | |