patch: work around pip's secure-install bug; bump version

- upstream issue: https://github.com/pypa/pip/issues/9644
- runs tests within a container, uses the same `dockerfile`
- ignores `pdm.lock`, removes `requirement.txt`
- update manual contribution steps
- bumps project version

**Related Items**

_Issues_

- Closes #137
This commit is contained in:
Jovial Joe Jayarson
2023-07-19 17:49:49 +05:30
parent 78ac94ef4f
commit 9630bc0a2b
9 changed files with 69 additions and 1095 deletions

View File

@@ -1,4 +1,4 @@
name: UnitTests
name: WakaReadme CI
on:
push:
@@ -8,17 +8,17 @@ on:
workflow_dispatch:
jobs:
build:
UnitTests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: "3.11"
- name: Install dependencies
- name: Build docker image
run: |
python -m pip install --user --no-cache-dir -r requirements.txt
- name: Run unit tests
run: |
python -m unittest discover
# Clear existing cache
docker builder prune --force
# Build and run container (executes unit tests)
docker compose -p waka-readme -f ./compose.yml up --no-color --pull always --build --force-recreate
# Cleanup
docker compose -p waka-readme -f ./compose.yml down --rmi all