Skip to content

Commit

Permalink
ci: test against traefik v3.0.0-beta.5
Browse files Browse the repository at this point in the history
  • Loading branch information
consideRatio committed Jan 24, 2024
1 parent 838873a commit 9fc8d4a
Showing 1 changed file with 20 additions and 12 deletions.
32 changes: 20 additions & 12 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,29 +46,37 @@ jobs:
- python: "3.10"
- python: "3.11"
- python: "3.12"
- python: "3.12"
traefik-version: v3.0.0-beta5
steps:
# NOTE: In GitHub workflows, environment variables are set by writing
# assignment statements to a file. They will be set in the following
# steps as if would used `export MY_ENV=my-value`.
- name: Configure environment variables
run: |
echo "PATH=$PWD/bin:$PATH" >> $GITHUB_ENV
- uses: actions/checkout@v4
# NOTE: actions/setup-python@v5 make use of a cache within the GitHub base
# environment and setup in a fraction of a second.
- name: Install Python ${{ matrix.python }}
uses: actions/setup-python@v5
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}

- name: Install Python dependencies
run: |
pip install --upgrade setuptools pip
pip install -r dev-requirements.txt -e .
python -m jupyterhub_traefik_proxy.install --output=./bin
- name: List Python dependencies
run: |
pip freeze
- name: Install traefik
run: |
export PATH="$PWD/bin:$PATH"
echo "PATH=$PATH" >> $GITHUB_ENV
TRAEFIK_VERSION=
if [[ ! -z "${{ matrix.traefik-version }}" ]]; then
TRAEFIK_VERSION=--traefik-version=${{ matrix.traefik-version }}
fi
python -m jupyterhub_traefik_proxy.install --output=./bin ${TRAEFIK_VERSION}
traefik version
- name: Install etcd, consul
run: |
curl -L https://releases.hashicorp.com/consul/${CONSUL_VERSION}/consul_${CONSUL_VERSION}_linux_amd64.zip > consul.zip
Expand Down

0 comments on commit 9fc8d4a

Please sign in to comment.