asdf #32
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 | |
# TODO: use proper rule | |
on: | |
push: | |
branches: | |
- '**' | |
jobs: | |
unit-tests: | |
defaults: | |
run: | |
working-directory: qsa-api | |
name: Unit tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- run: | | |
sudo apt update && sudo apt install -y gnupg wget software-properties-common && \ | |
sudo wget -qO - https://qgis.org/downloads/qgis-2022.gpg.key | sudo gpg --no-default-keyring --keyring gnupg-ring:/etc/apt/trusted.gpg.d/qgis-archive.gpg --import && \ | |
sudo chmod a+r /etc/apt/trusted.gpg.d/qgis-archive.gpg && \ | |
sudo add-apt-repository "deb https://qgis.org/ubuntu $(lsb_release -cs) main" && \ | |
sudo add-apt-repository "deb https://qgis.org/ubuntu $(lsb_release -cs) main" && \ | |
sudo apt update && \ | |
DEBIAN_FRONTEND=noninteractive sudo apt-get install -y python3-pip qgis python3-qgis python3-qgis-common python3-venv \ | |
python3-pytest python3-mock xvfb qttools5-dev-tools && \ | |
sudo apt-get clean | |
- run: sudo apt update && sudo apt install -y python3-poetry python3-flask python3-boto3 | |
- run: poetry install | |
- run: | | |
python -m pip install --upgrade pip | |
pip install pytest | |
pytest -sv tests/test_api_storage_filesystem.py | |