Skip to content

asdf

asdf #37

Workflow file for this run

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
- 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
- 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