Trying to get it to work.
Signed-off-by: Cliff Hill <xlorep@darkhelm.org>
This commit is contained in:
@@ -10,25 +10,40 @@ jobs:
|
||||
backend-tests:
|
||||
name: Backend Tests (Python 3.13 + uv)
|
||||
runs-on: ubuntu-latest
|
||||
container: python:3.13-slim
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install system dependencies
|
||||
- name: Manual git checkout
|
||||
run: |
|
||||
apt-get update
|
||||
apt-get install -y curl git
|
||||
# Debug environment variables
|
||||
echo "GITHUB_SERVER_URL: ${{ github.server_url }}"
|
||||
echo "GITHUB_REPOSITORY: ${{ github.repository }}"
|
||||
echo "GITHUB_SHA: ${{ github.sha }}"
|
||||
echo "GITHUB_REF: ${{ github.ref }}"
|
||||
|
||||
# Clone the repository manually
|
||||
git clone ${{ github.server_url }}/${{ github.repository }}.git .
|
||||
git checkout ${{ github.sha }}
|
||||
echo "Repository cloned successfully"
|
||||
ls -la
|
||||
|
||||
- name: Install Python 3.13
|
||||
run: |
|
||||
# Add deadsnakes PPA for Python 3.13
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y software-properties-common
|
||||
sudo add-apt-repository ppa:deadsnakes/ppa -y
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y python3.13 python3.13-venv python3.13-dev curl git
|
||||
|
||||
- name: Install uv
|
||||
run: |
|
||||
curl -LsSf https://astral.sh/uv/install.sh | sh
|
||||
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
|
||||
|
||||
- name: Verify uv installation
|
||||
- name: Verify installations
|
||||
run: |
|
||||
export PATH="$HOME/.cargo/bin:$PATH"
|
||||
python3.13 --version
|
||||
uv --version
|
||||
|
||||
- name: Setup Python environment with uv
|
||||
@@ -36,7 +51,7 @@ jobs:
|
||||
run: |
|
||||
export PATH="$HOME/.cargo/bin:$PATH"
|
||||
# Create virtual environment
|
||||
uv venv .venv --python 3.13
|
||||
uv venv .venv --python python3.13
|
||||
|
||||
# Activate environment and install dependencies
|
||||
. .venv/bin/activate
|
||||
@@ -61,16 +76,26 @@ jobs:
|
||||
frontend-tests:
|
||||
name: Frontend Tests (TypeScript + Vue + Yarn Berry)
|
||||
runs-on: ubuntu-latest
|
||||
container: node:20-slim
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install system dependencies
|
||||
- name: Manual git checkout
|
||||
run: |
|
||||
apt-get update
|
||||
apt-get install -y curl git
|
||||
# Debug environment variables
|
||||
echo "GITHUB_SERVER_URL: ${{ github.server_url }}"
|
||||
echo "GITHUB_REPOSITORY: ${{ github.repository }}"
|
||||
echo "GITHUB_SHA: ${{ github.sha }}"
|
||||
echo "GITHUB_REF: ${{ github.ref }}"
|
||||
|
||||
# Clone the repository manually
|
||||
git clone ${{ github.server_url }}/${{ github.repository }}.git .
|
||||
git checkout ${{ github.sha }}
|
||||
echo "Repository cloned successfully"
|
||||
ls -la
|
||||
|
||||
- name: Install Node.js 20
|
||||
run: |
|
||||
curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash -
|
||||
sudo apt-get install -y nodejs
|
||||
|
||||
- name: Setup Yarn Berry
|
||||
run: |
|
||||
|
||||
Reference in New Issue
Block a user