asdf #39
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 | |
container: | |
image: ubuntu:24.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.12' | |
- run: sudo apt update && sudo apt install python3-poetry python3-pytest python3-requests | |
- run: poetry install | |
- run: | | |
pip install pytest | |
pytest -sv tests/test_api_storage_filesystem.py | |
- 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 qgis python3-qgis python3-qgis-common python3-venv \ | |
python3-mock xvfb qttools5-dev-tools python3-flask python3-boto3 python3-poetry && \ | |
sudo apt-get clean | |