Joint-Teapot/.github/workflows/python-package.yml
张泊明518370910136 89c88dfc61
All checks were successful
CodeQL / Analyze (python) (push) Has been skipped
mkdocs / deploy (push) Has been skipped
Python package / build (push) Has been skipped
ci: skip github actions on gitea
2025-06-02 20:45:15 -04:00

34 lines
1.1 KiB
YAML

# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: Python package
on: [ push ]
jobs:
build:
if: ${{ env.GITEA_ACTIONS != 'true' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Cache environment
uses: actions/cache@v4
id: cache
with:
path: ${{ env.pythonLocation }}
key: ${{ runner.os }}-${{ env.pythonLocation }}-${{ secrets.CACHE_VERSION }}-${{ hashFiles('**/setup.py') }}-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-${{ env.pythonLocation }}
- name: Install dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: |
python -m pip install --upgrade pip
- name: Install itself
run: if [ -f requirements.txt ]; then pip install -e .; fi
- name: Run --help
run: joint-teapot --help