-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Removed example folders and updated readme with clearer explanation - Docker images get tagged with {ref_name}-py{version} and latest-py{version} - Added new tests folder with projects: flask, fastapi, simple, simple_async. All follow the same pattern to store, retrieve and delete items from a dict. - Fixed issues encountered thanks to new tests added. - Validating WSGI implementation with wsgiref.
- Loading branch information
Showing
29 changed files
with
783 additions
and
236 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
--- | ||
name: Go Tests | ||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
push: | ||
branches: | ||
- main | ||
jobs: | ||
tests: | ||
runs-on: ubuntu-22.04 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: ['3.9', '3.10', '3.11', '3.12'] | ||
env: | ||
GOEXPERIMENT: cgocheck2 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-go@v5 | ||
with: | ||
go-version: '1.21' | ||
cache: false | ||
- name: Install Xcaddy | ||
run: go install github.com/caddyserver/xcaddy/cmd/xcaddy@latest | ||
- name: Set up Python ${{ matrix.python-version }} | ||
run: | | ||
export DEBIAN_FRONTEND=noninteractive | ||
sudo apt-get update -yyqq | ||
sudo apt-get install -yyqq software-properties-common | ||
sudo add-apt-repository -y ppa:deadsnakes/ppa | ||
sudo apt-get install -yyqq python${{ matrix.python-version }}-dev python${{ matrix.python-version }}-venv | ||
sudo mv /usr/lib/x86_64-linux-gnu/pkgconfig/python-${{ matrix.python-version }}-embed.pc /usr/lib/x86_64-linux-gnu/pkgconfig/python3-embed.pc | ||
- name: Install global python dependencies | ||
run: sudo pip install requests | ||
- name: Run module tests | ||
run: go test -race -v ./... | ||
- name: Build the server | ||
run: CGO_ENABLED=1 xcaddy build --with github.com/mliezun/caddy-snake=. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.