Skip to content

Commit

Permalink
Try a different approach
Browse files Browse the repository at this point in the history
  • Loading branch information
deivid-rodriguez committed Mar 24, 2023
1 parent 182d829 commit af7d9fa
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 11 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -210,4 +210,9 @@ jobs:
- uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- uses: actions/setup-python@v1
with:
python-version-file: .python-version
cache: pip
- run: pip install -r requirements.txt
- run: ./bin/lint
1 change: 1 addition & 0 deletions .python-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.7
2 changes: 2 additions & 0 deletions bin/lint
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,5 @@ shellcheck \
"$@"

bundle exec rubocop

flake8 python/helpers/. --count --exclude=./.*,./python/spec/fixtures --show-source --statistics
11 changes: 0 additions & 11 deletions python/script/ci-test
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,5 @@

set -e

# Not yet true but sets the example to follow after Python 3.6 support is dropped
OLDEST_SUPPORTED_PYTHON=3.7

if [ -s /usr/local/.pyenv/$OLDEST_SUPPORTED_PYTHON.tar.gz ]
then
tar xzf /usr/local/.pyenv/$OLDEST_SUPPORTED_PYTHON.tar.gz -C /usr/local/.pyenv/
fi

PYENV_VERSION=$OLDEST_SUPPORTED_PYTHON pyenv exec pip --disable-pip-version-check install --use-pep517 -r "helpers/dev-requirements.txt"
bundle install

PYENV_VERSION=$OLDEST_SUPPORTED_PYTHON pyenv exec flake8 helpers/. --count --exclude=./.*,./python/spec/fixtures --show-source --statistics
bundle exec parallel_test spec/ -n "$CI_NODE_TOTAL" --only-group "$CI_NODE_INDEX" --group-by filesize --type rspec
File renamed without changes.

0 comments on commit af7d9fa

Please sign in to comment.