build(deps): Update pycparser requirement from 2.21 to 2.22 #449
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
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions | |
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python | |
name: at client | |
on: | |
push: | |
branches: [ "trunk", "dev" ] | |
pull_request: | |
branches: [ "trunk", "dev" ] | |
permissions: # added using https://github.com/step-security/secure-repo | |
contents: read | |
jobs: | |
build: | |
# Don't run on PRs from a fork as the secrets aren't available | |
if: ${{ github.event.pull_request.head.repo.fork == false }} | |
runs-on: ubuntu-latest | |
timeout-minutes: 15 | |
strategy: | |
max-parallel: 1 | |
fail-fast: false | |
matrix: | |
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] | |
steps: | |
- name: Checkout at_python | |
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
python3 -m pip install --require-hashes -r requirements.dev | |
- name: Lint with flake8 | |
run: | | |
# stop the build if there are Python syntax errors or undefined names | |
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics | |
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide | |
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics | |
- name: Test with pytest | |
run: | | |
mkdir keys | |
echo '${{secrets.BARRACUDA_ATKEYS}}' > keys/@27barracuda_key.atKeys | |
echo '${{secrets.AMATEUR_ATKEYS}}' > keys/@amateur93_key.atKeys | |
echo '${{secrets.UNIVERSALALOO_ATKEYS}}' > keys/@universal27aloo_key.atKeys | |
if [[ "$GITHUB_ACTOR" == "dependabot[bot]" ]]; then | |
echo "This is a Dependabot pull request." | |
export DEPENDABOT_PR=1 | |
else | |
echo "This is not a Dependabot pull request." | |
export DEPENDABOT_PR=0 | |
fi | |
python3 -m unittest discover -s test -p '*_test.py' -v |