Skip to content

Commit

Permalink
Merge pull request #55 from kiwix/48-ci-fix-path
Browse files Browse the repository at this point in the history
Fix python unit tests
  • Loading branch information
BPerlakiH committed Feb 14, 2024
2 parents 0821d71 + d8d0006 commit c8ad012
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 13 deletions.
15 changes: 4 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand All @@ -86,7 +80,6 @@ jobs:

# run xcodegen on our custom project
xcodegen -s custom_project.yml

ls -la


Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Empty file added src/__init__.py
Empty file.

0 comments on commit c8ad012

Please sign in to comment.