Skip to content

Cleanup

Cleanup #7

Workflow file for this run

name: Quality Control
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
lint-and-format:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v3
- name: Set up Python 3.10.15
uses: actions/setup-python@v4
with:
python-version: 3.10.15
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pylint black ratelimit requests urllib3
- name: Run Pylint on squarelet.py
run: |
pylint src/squarelet/squarelet.py
- name: Run Black on squarelet.py
run: |
black src/squarelet/squarelet.py
run-tests:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
env:
SQ_USER: ${{ secrets.SQ_USER }}
SQ_PASSWORD: ${{ secrets.SQ_PASSWORD }}
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install python-squarelet pytest
- name: Run tests
run: |
pytest src/squarelet/tests.py