Fix CI workflow - use native Gitea syntax
This commit is contained in:
@@ -2,28 +2,29 @@ name: CI
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
branches: [ main ]
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
branches: [ main ]
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
- 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: Set up Python
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: '3.10'
|
||||
- name: Setup Python
|
||||
run: |
|
||||
python3 -m pip install --upgrade pip
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install pytest pytest-cov
|
||||
pip install pytest
|
||||
pip install -r requirements.txt
|
||||
|
||||
- name: Run tests
|
||||
@@ -33,13 +34,13 @@ jobs:
|
||||
lint:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: '3.10'
|
||||
- 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: |
|
||||
@@ -50,15 +51,15 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
needs: test
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
- 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: Set up Python
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: '3.10'
|
||||
|
||||
- name: Install and build
|
||||
- name: Verify build
|
||||
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