Add python_version to the Configuration #1411
Workflow file for this run
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: Gateway verify process | |
on: | |
pull_request: | |
jobs: | |
verify-gateway: | |
name: lint, test, coverage | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ['3.9'] | |
defaults: | |
run: | |
working-directory: ./gateway | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
cache: 'pip' | |
- 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 | |
- name: Run styles check | |
run: tox -elint | |
- name: Test using tox environment | |
run: | | |
tox ${{ env.TOX_ENV }} | |
- name: Coverage check | |
run: | | |
tox -ecoverage |