Public Access
Trying to get it to work.
Signed-off-by: Cliff Hill <xlorep@darkhelm.org>
This commit is contained in:
+41
-16
@@ -10,25 +10,40 @@ jobs:
|
|||||||
backend-tests:
|
backend-tests:
|
||||||
name: Backend Tests (Python 3.13 + uv)
|
name: Backend Tests (Python 3.13 + uv)
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container: python:3.13-slim
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Manual git checkout
|
||||||
uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Install system dependencies
|
|
||||||
run: |
|
run: |
|
||||||
apt-get update
|
# Debug environment variables
|
||||||
apt-get install -y curl git
|
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
|
- name: Install uv
|
||||||
run: |
|
run: |
|
||||||
curl -LsSf https://astral.sh/uv/install.sh | sh
|
curl -LsSf https://astral.sh/uv/install.sh | sh
|
||||||
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
|
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
|
||||||
|
|
||||||
- name: Verify uv installation
|
- name: Verify installations
|
||||||
run: |
|
run: |
|
||||||
export PATH="$HOME/.cargo/bin:$PATH"
|
export PATH="$HOME/.cargo/bin:$PATH"
|
||||||
|
python3.13 --version
|
||||||
uv --version
|
uv --version
|
||||||
|
|
||||||
- name: Setup Python environment with uv
|
- name: Setup Python environment with uv
|
||||||
@@ -36,7 +51,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
export PATH="$HOME/.cargo/bin:$PATH"
|
export PATH="$HOME/.cargo/bin:$PATH"
|
||||||
# Create virtual environment
|
# Create virtual environment
|
||||||
uv venv .venv --python 3.13
|
uv venv .venv --python python3.13
|
||||||
|
|
||||||
# Activate environment and install dependencies
|
# Activate environment and install dependencies
|
||||||
. .venv/bin/activate
|
. .venv/bin/activate
|
||||||
@@ -61,16 +76,26 @@ jobs:
|
|||||||
frontend-tests:
|
frontend-tests:
|
||||||
name: Frontend Tests (TypeScript + Vue + Yarn Berry)
|
name: Frontend Tests (TypeScript + Vue + Yarn Berry)
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container: node:20-slim
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Manual git checkout
|
||||||
uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Install system dependencies
|
|
||||||
run: |
|
run: |
|
||||||
apt-get update
|
# Debug environment variables
|
||||||
apt-get install -y curl git
|
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
|
- name: Setup Yarn Berry
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user