Skip to content

Commit

Permalink
asdf
Browse files Browse the repository at this point in the history
  • Loading branch information
JakobMiksch authored Jul 7, 2024
1 parent a827601 commit 8660c9c
Showing 1 changed file with 34 additions and 26 deletions.
60 changes: 34 additions & 26 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,35 +7,43 @@ on:
- '**'

jobs:
unit-tests:

defaults:
run:
working-directory: qsa-api

name: Unit tests
test-container:
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
ls
pwd
echo "Hello world"
# 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 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

0 comments on commit 8660c9c

Please sign in to comment.