Setup PyPI publish action #34
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: Check Code Standard Adherence | |
env: | |
CLONE_PATH: ${{ github.workspace }} | |
on: | |
push: | |
branches: [main, develop] | |
pull_request: | |
branches: [main, develop] | |
jobs: | |
build: | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
python-version: ["3.12"] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Setup base Python environment | |
run: | | |
$CLONE_PATH/.github/workflows/setup_base_python.sh ${{ runner.os }} | |
- name: Check coding standards | |
run: | | |
pushd $CLONE_PATH | |
tox -r -e check | |
popd |