Add localclient to integration tests #46
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
name: Integration tests | |
on: | |
pull_request: | |
permissions: | |
contents: read | |
jobs: | |
verify-integration: | |
name: lint, test | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false # keep running if one leg fails | |
matrix: | |
python-version: | |
- '3.11' | |
defaults: | |
run: | |
working-directory: ./tests | |
steps: | |
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 #4.1.7 | |
- name: Build the containers | |
run: docker compose -f ../docker-compose-dev.yaml build | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.11' | |
- name: Set up tox environment | |
run: | | |
pver=${{ matrix.python-version }} | |
tox_env="-epy${pver/./}" | |
echo tox_env | |
echo TOX_ENV=$tox_env >> $GITHUB_ENV | |
- name: Install tox | |
run: | | |
pip install tox==4.16.0 | |
- name: Run styles check | |
run: tox -elint | |
- name: Test using tox environment | |
run: | | |
tox ${{ env.TOX_ENV }} |