Bumps [actions/checkout](https://github.com/actions/checkout) from 4.1.3 to 4.1.4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](1d96c772d1...0ad4b8fada)
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
74 lines
2.2 KiB
YAML
74 lines
2.2 KiB
YAML
# This workflow will install Python dependencies, run tests and lint with a single version of Python
|
|
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
|
|
|
|
name: Exercises check
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
- main
|
|
pull_request:
|
|
|
|
jobs:
|
|
housekeeping:
|
|
runs-on: ubuntu-22.04
|
|
steps:
|
|
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b
|
|
|
|
- name: Set up Python
|
|
uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d
|
|
with:
|
|
python-version: 3.11.2
|
|
|
|
- name: Download & Install dependencies
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
pip install flake8 requests
|
|
git clone https://github.com/exercism/problem-specifications .problem-specifications
|
|
pip install -r requirements-generator.txt
|
|
|
|
# - name: Check readmes
|
|
# run: |
|
|
# ./bin/check-readmes.sh
|
|
|
|
- name: Generate tests
|
|
run: |
|
|
bin/generate_tests.py --verbose -p .problem-specifications --check
|
|
|
|
- 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 template status
|
|
continue-on-error: true
|
|
run: |
|
|
./bin/template_status.py -v -p .problem-specifications
|
|
|
|
canonical_sync:
|
|
runs-on: ubuntu-22.04
|
|
needs: housekeeping
|
|
strategy:
|
|
matrix:
|
|
python-version: [3.7, 3.8, 3.9, 3.10.6, 3.11.2]
|
|
steps:
|
|
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b
|
|
|
|
- uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|
|
|
|
- name: Install dataclasses package
|
|
if: ${{ matrix.python-version == '3.6' }}
|
|
run: pip install dataclasses
|
|
|
|
- name: Install pytest
|
|
run: pip install pytest~=7.2.2
|
|
|
|
- name: Check exercises
|
|
run: |
|
|
./bin/test_exercises.py
|