Skip to content

build(deps): Bump actions/checkout from 4.1.7 to 4.2.0 in the github-actions group #689

build(deps): Bump actions/checkout from 4.1.7 to 4.2.0 in the github-actions group

build(deps): Bump actions/checkout from 4.1.7 to 4.2.0 in the github-actions group #689

Workflow file for this run

# 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@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.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