diff --git a/.github/workflows/build-packages.yml b/.github/workflows/build-packages.yml index 807207ae..daea8c0c 100644 --- a/.github/workflows/build-packages.yml +++ b/.github/workflows/build-packages.yml @@ -3,7 +3,22 @@ on: workflow_call: jobs: - package: + python: + runs-on: ubuntu-latest + steps: + - name: Download Python Artifacts + uses: actions/download-artifact@v4 + with: + path: pythondl + pattern: wheels-* + merge-multiple: true + - name: Upload lib-python package + uses: actions/upload-artifact@v4 + with: + name: lib-python + path: pythondl + + rust: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/build-tests.yml b/.github/workflows/build-tests.yml index ad9dfc00..6ee0dfb4 100644 --- a/.github/workflows/build-tests.yml +++ b/.github/workflows/build-tests.yml @@ -56,6 +56,29 @@ jobs: npm run build npm run test + python: + # strategy: + # fail-fast: false + # matrix: + # os: [windows-latest, ubuntu-latest, macos-latest] + # runs-on: ${{ matrix.os }} + runs-on: windows-latest + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: Setup Job Environment + uses: ./.github/actions/job-setup + - name: Install Dependencies + working-directory: src/lib-python + run: | + dotnet tool update -g vpk + pip install uv + uv sync + - name: Check lib-python + working-directory: src/lib-python/test + run: uv run python run_test.py + vpk: strategy: fail-fast: false @@ -88,7 +111,8 @@ jobs: run: dotnet tool install -g dotnet-coverage - name: Build .NET run: dotnet build -c Release - - uses: ./.github/actions/wait-artifact + - name: Wait for Artifacts + uses: ./.github/actions/wait-artifact with: token: ${{ secrets.GITHUB_TOKEN }} max_wait_seconds: 900 @@ -123,7 +147,8 @@ jobs: uses: codecov/codecov-action@v5 with: directory: ./test - - uses: ./.github/actions/wait-artifact + - name: Wait for Artifacts + uses: ./.github/actions/wait-artifact if: ${{ matrix.os == 'ubuntu-latest' || matrix.os == 'windows-latest' }} with: token: ${{ secrets.GITHUB_TOKEN }}