fix: haskelseed-native Gitea Actions without GitHub marketplace
Some checks failed
ci / test (push) Failing after 6s
Some checks failed
ci / test (push) Failing after 6s
Replace actions/checkout and setup-python with internal git clone and system python3. Drops CI matrix to a single job on the self-hosted runner.
This commit is contained in:
@@ -9,26 +9,28 @@ on:
|
||||
jobs:
|
||||
test:
|
||||
runs-on: haskelseed
|
||||
strategy:
|
||||
matrix:
|
||||
python-version: ["3.10", "3.12"]
|
||||
steps:
|
||||
- name: Check out source
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Python ${{ matrix.python-version }}
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: ${{ matrix.python-version }}
|
||||
env:
|
||||
PACKAGE_TOKEN: ${{ secrets.PACKAGE_TOKEN }}
|
||||
run: |
|
||||
git clone --depth 1 \
|
||||
"https://tegwick:${PACKAGE_TOKEN}@gitea.coulomb.social/coulomb/kaizen-agentic.git" \
|
||||
repo
|
||||
cd repo
|
||||
git checkout "${{ gitea.sha }}"
|
||||
|
||||
- name: Install package and dev tools
|
||||
run: python -m pip install --upgrade pip && python -m pip install -e ".[dev]"
|
||||
run: |
|
||||
cd repo
|
||||
python3 -m pip install --upgrade pip
|
||||
python3 -m pip install -e ".[dev]"
|
||||
|
||||
- name: Format check (black)
|
||||
run: black --check src tests
|
||||
run: cd repo && black --check src tests
|
||||
|
||||
- name: Lint (flake8)
|
||||
run: pip install flake8 && flake8 src/ --max-line-length=100
|
||||
run: cd repo && flake8 src/ --max-line-length=100
|
||||
|
||||
- name: Run tests
|
||||
run: pytest tests/ -q --ignore=tests/test_cli_error_handling.py
|
||||
run: cd repo && pytest tests/ -q --ignore=tests/test_cli_error_handling.py
|
||||
|
||||
@@ -11,27 +11,24 @@ jobs:
|
||||
runs-on: haskelseed
|
||||
steps:
|
||||
- name: Check out source
|
||||
uses: actions/checkout@v4
|
||||
env:
|
||||
PACKAGE_TOKEN: ${{ secrets.PACKAGE_TOKEN }}
|
||||
run: |
|
||||
git clone --depth 1 \
|
||||
"https://tegwick:${PACKAGE_TOKEN}@gitea.coulomb.social/coulomb/kaizen-agentic.git" \
|
||||
repo
|
||||
cd repo
|
||||
git checkout "${{ gitea.sha }}"
|
||||
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: "3.12"
|
||||
|
||||
- name: Install packaging tools
|
||||
run: python -m pip install --upgrade build twine
|
||||
|
||||
- name: Build distributions
|
||||
run: python -m build
|
||||
|
||||
- name: Validate distributions
|
||||
run: python -m twine check dist/*
|
||||
|
||||
- name: Upload to Gitea PyPI
|
||||
- name: Build and publish
|
||||
env:
|
||||
TWINE_USERNAME: ${{ secrets.PACKAGE_USER }}
|
||||
TWINE_PASSWORD: ${{ secrets.PACKAGE_TOKEN }}
|
||||
run: >-
|
||||
python -m twine upload
|
||||
--repository-url https://gitea.coulomb.social/api/packages/coulomb/pypi
|
||||
dist/*
|
||||
run: |
|
||||
cd repo
|
||||
python3 -m pip install --upgrade pip build twine
|
||||
python3 -m build
|
||||
python3 -m twine check dist/*
|
||||
python3 -m twine upload \
|
||||
--repository-url https://gitea.coulomb.social/api/packages/coulomb/pypi \
|
||||
dist/*
|
||||
|
||||
Reference in New Issue
Block a user