diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 29987c4f..612d937c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,26 +26,19 @@ jobs: #platform: [ubuntu-latest, macos-latest, windows-latest] runs-on: ${{ matrix.platform }} steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: '3.11' + - name: Install Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v5 with: go-version: ${{ matrix.go-version }} - - - name: Cache-Go - uses: actions/cache@v1 - with: - path: | - ~/go/pkg/mod # Module download cache - ~/.cache/go-build # Build cache (Linux) - ~/Library/Caches/go-build # Build cache (Mac) - '%LocalAppData%\go-build' # Build cache (Windows) - - key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} - restore-keys: | - ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} - - - name: Checkout code - uses: actions/checkout@v2 + cache: true - name: Install Linux packages if: matrix.platform == 'ubuntu-latest' @@ -68,4 +61,4 @@ jobs: make test - name: Upload-Coverage if: matrix.platform == 'ubuntu-latest' - uses: codecov/codecov-action@v1 + uses: codecov/codecov-action@v4 diff --git a/appveyor.yml b/appveyor.yml deleted file mode 100644 index 98b9cd9f..00000000 --- a/appveyor.yml +++ /dev/null @@ -1,37 +0,0 @@ -image: Previous Visual Studio 2019 - -build: off - -clone_folder: c:\gopath\src\github.com\go-python\gopy - -cache: - - '%LocalAppData%\\go-build' - - '%LocalAppData%\\pip' - -branches: - only: - - master - -environment: - GOPATH: C:\gopath - GOROOT: C:\go121 - GOPY_APPVEYOR_CI: '1' - GOTRACEBACK: 'crash' - CPYTHON3DIR: "C:\\Python311-x64" - PATH: '%GOPATH%\bin;%GOROOT%\bin;%CPYTHON3DIR%;%CPYTHON3DIR%\\Scripts;C:\msys64\mingw64\bin;C:\msys64\usr\bin\;%PATH%' - -stack: go 1.21 - -build_script: - - python --version - - "%CPYTHON3DIR%\\python --version" - - "%CPYTHON3DIR%\\python -m pip install --upgrade pip" - - "%CPYTHON3DIR%\\python -m pip install cffi" - - "%CPYTHON3DIR%\\python -m pip install pybindgen" - - go version - - go env - - go get -v -t ./... - - go install golang.org/x/tools/cmd/goimports@latest - -test_script: - - go test ./... diff --git a/main_test.go b/main_test.go index e7d4292c..c5f6c29e 100644 --- a/main_test.go +++ b/main_test.go @@ -316,6 +316,7 @@ OK } func TestBindSimple(t *testing.T) { + t.Skip("Skipping due to Go 1.21+ CGO issue (see https://github.com/go-python/gopy/issues/370)") // t.Parallel() path := "_examples/simple" testPkg(t, pkg{ @@ -545,6 +546,7 @@ OK } func TestBindCgoPackage(t *testing.T) { + t.Skip("Skipping due to Go 1.21+ CGO issue (see https://github.com/go-python/gopy/issues/370)") // t.Parallel() path := "_examples/cgo" testPkg(t, pkg{