Merge pull request #55 from kiwix/48-ci-fix-path

Fix python unit tests
This commit is contained in:
BPH 2024-02-14 22:43:06 +01:00 committed by GitHub
commit c8ad01270f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 6 additions and 13 deletions

View File

@ -37,20 +37,15 @@ jobs:
- name: Test python scripts
working-directory: custom
env:
PYTHONPATH: src/
run: python -m unittest
run: PYTHONPATH=src python -m unittest discover -s tests
- name: Set test tag variable as an output
id: vars
run: echo "tag=testapp_2023.12.1" >> $GITHUB_OUTPUT
- name: Validate and parse the tag
run:
|
cd custom
python src/tag_validator.py ${{ steps.vars.outputs.tag }}
cd ..
working-directory: custom
run: python src/tag_validator.py ${{ steps.vars.outputs.tag }}
- name: Check-out kiwix/apple
uses: actions/checkout@v4
@ -59,11 +54,10 @@ jobs:
path: apple
- name: Install Kiwix dependencies
working-directory: apple
run: | # remove pre-commit, it's not needed for CI
cd apple
cat Brewfile | grep -v -e pre-commit > Brewfile_CI
brew bundle --force --file Brewfile_CI
cd ..
- name: Generate project based on tag
env:
@ -86,7 +80,6 @@ jobs:
# run xcodegen on our custom project
xcodegen -s custom_project.yml
ls -la

View File

@ -8,8 +8,8 @@ This project contains data and scripts needed to create specific
custom Kiwix Apple apps.
[![CodeFactor](https://www.codefactor.io/repository/github/kiwix/kiwix-apple-custom/badge)](https://www.codefactor.io/repository/github/kiwix/kiwix-apple-custom)
[![CI Build Status](https://github.com/kiwix/kiwix-apple-custom/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/kiwix/apple/actions/workflows/ci.yml?query=branch%3Amain)
[![CD Build Status](https://github.com/kiwix/kiwix-apple-custom/actions/workflows/cd.yml/badge.svg?branch=main)](https://github.com/kiwix/kiwix-apple-custom/actions/workflows/cd?query=branch%3Amain)
[![CI Build Status](https://github.com/kiwix/kiwix-apple-custom/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/kiwix/kiwix-apple-custom/actions/workflows/ci.yml)
[![CD Build Status](https://github.com/kiwix/kiwix-apple-custom/actions/workflows/cd.yml/badge.svg?branch=main)](https://github.com/kiwix/kiwix-apple-custom/actions/workflows/cd.yml)
[![License: GPL v3](https://img.shields.io/badge/License-GPLv3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0)
## Custom app folder

0
src/__init__.py Normal file
View File