Update CI workflow - minimal Gitea syntax
This commit is contained in:
@@ -10,40 +10,16 @@ jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
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: |
|
||||
- run: |
|
||||
python3 -m pip install --upgrade pip
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
pip install pytest
|
||||
pip install -r requirements.txt
|
||||
|
||||
- name: Run tests
|
||||
run: |
|
||||
pytest tests/ -v
|
||||
|
||||
lint:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
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: |
|
||||
- run: |
|
||||
pip install ruff
|
||||
ruff check .
|
||||
|
||||
@@ -51,15 +27,6 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
needs: test
|
||||
steps:
|
||||
- name: Checkout
|
||||
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: |
|
||||
- run: |
|
||||
pip install -r requirements.txt
|
||||
python -c "from man_card import cli, man_parser, card_generator, templates, config; print('All modules import successfully')"
|
||||
|
||||
Reference in New Issue
Block a user