Update CI workflow - minimal Gitea syntax
Some checks failed
CI / test (push) Failing after 1s
CI / build (push) Has been skipped
CI / lint (push) Failing after 1s

This commit is contained in:
2026-01-31 21:51:51 +00:00
parent 0633ec7dbf
commit 16a4cbb4c0

View File

@@ -10,40 +10,16 @@ jobs:
test: test:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout - run: |
run: |
mkdir -p ${{ github.workspace }}
cd ${{ github.workspace }}
git clone --depth 1 https://github.com/actions/checkout.git _actions/checkout
cp -r _actions/checkout/* .
rm -rf _actions
- name: Setup Python
run: |
python3 -m pip install --upgrade pip python3 -m pip install --upgrade pip
- name: Install dependencies
run: |
pip install pytest pip install pytest
pip install -r requirements.txt pip install -r requirements.txt
- name: Run tests
run: |
pytest tests/ -v pytest tests/ -v
lint: lint:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout - run: |
run: |
mkdir -p ${{ github.workspace }}
cd ${{ github.workspace }}
git clone --depth 1 https://github.com/actions/checkout.git _actions/checkout
cp -r _actions/checkout/* .
rm -rf _actions
- name: Run linter
run: |
pip install ruff pip install ruff
ruff check . ruff check .
@@ -51,15 +27,6 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: test needs: test
steps: steps:
- name: Checkout - run: |
run: |
mkdir -p ${{ github.workspace }}
cd ${{ github.workspace }}
git clone --depth 1 https://github.com/actions/checkout.git _actions/checkout
cp -r _actions/checkout/* .
rm -rf _actions
- name: Verify build
run: |
pip install -r requirements.txt pip install -r requirements.txt
python -c "from man_card import cli, man_parser, card_generator, templates, config; print('All modules import successfully')" python -c "from man_card import cli, man_parser, card_generator, templates, config; print('All modules import successfully')"