Skip to content

Fix: Paths to fake data were broken by refactoring #1078

Fix: Paths to fake data were broken by refactoring

Fix: Paths to fake data were broken by refactoring #1078

Workflow file for this run

name: Test code quality
on: push
jobs:
code-quality-python:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Workaround github issue https://github.com/actions/runner-images/issues/7192
run: sudo echo RESET grub-efi/install_devices | sudo debconf-communicate grub-pc
- name: Install required system packages only for Ubuntu Linux
run: |
sudo apt-get update
sudo apt-get -y upgrade
sudo apt-get install -y python3 python3-pip python3-aiohttp python3-msgpack python3-aiodns python3-alembic python3-sqlalchemy python3-setproctitle redis python3-aioredis python3-psutil sudo acl curl systemd-container squashfs-tools debootstrap python3-packaging python3-cpuinfo python3-nftables python3-jsonschema nftables
pip install --upgrade typing-extensions types-PyYAML
- name: Install required Python packages
run: |
python3 -m pip install hatch hatch-vcs coverage
- name: Test style wth ruff, black and isort
run: |
hatch run lint:style
- name: Test typing with Mypy
run: |
hatch run lint:typing
- name: Install required system packages for installing and running tests
run: |
sudo apt-get install libsystemd-dev cmake libdbus-1-dev libglib2.0-dev
- name: Run unit tests
run: |
hatch run testing:test-cov
hatch run testing:cov
- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: aleph-im/aleph-vm
code-quality-shell:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Workaround github issue https://github.com/actions/runner-images/issues/7192
run: sudo echo RESET grub-efi/install_devices | sudo debconf-communicate grub-pc
- name: Install required system packages only for Ubuntu Linux
run: |
sudo apt-get update
sudo apt-get install -y shellcheck
- name: Run Shellcheck on all shell scripts
run: |
find ./ -type f -name "*.sh" -exec shellcheck {} \;