Skip to content

Pin black to 22.10.0 #1412

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 30, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 25 additions & 14 deletions .github/workflows/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,39 +26,50 @@ jobs:
run: |
python -m pip install --upgrade pip
python -m pip install -r requirements/development.txt
- name: Check that documentation builds
run: |
python -m pip install sphinx
python -m pip install sphinx_rtd_theme
python -m pip install mock
cd docs; make clean; make html; cd ..;
- name: Run tests
run: |
python -m pip install coverage
coverage run --source=axelrod -m unittest discover
- name: Report coverage
run: |
coverage report -m --fail-under=100
- name: Check that documentation builds
run: |
python -m pip install sphinx
python -m pip install sphinx_rtd_theme
python -m pip install mock
cd docs; make clean; make html; cd ..;
- name: Run doctests
run: |
python doctests.py
- name: Check imports are sorted
run: |
python -m pip install "isort==4.3.21"
python -m isort --check-only --recursive axelrod/.
- name: Check that all strategies are indexed
run: |
python run_strategy_indexer.py
- name: Check that strategies are added to axelrod.all_strategies
run: |
python -m pip install pylint
python -m pylint --disable=all --enable=unused-import axelrod/strategies/_strategies.py
- name: Check format
run: |
python -m pip install black
python -m black -l 80 . --check
- name: Check that installs
run: |
python setup.py install
cd ..
python -c "import axelrod"

format-check:
needs: build
runs-on: ${{ matrix.os }}
strategy:
max-parallel: 4
matrix:
os: [ubuntu-latest]
python-version: ["3.11"]
steps:
- name: Check imports are sorted
run: |
python -m pip install "isort==4.3.21"
python -m isort --check-only --recursive axelrod/.
- name: Check format
run: |
python -m pip install black=="22.10.0"
python -m black -l 80 . --check