Skip to content

Commit ba13486

Browse files
committed
Dummy commit to test CI
1 parent 8b07033 commit ba13486

File tree

4 files changed

+21
-11
lines changed

4 files changed

+21
-11
lines changed

.github/workflows/tests.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,16 @@ jobs:
5050
run: |
5151
sudo add-apt-repository -y ppa:deadsnakes/ppa
5252
sudo apt-get -qq update
53-
sudo apt-get install -y python${{ matrix.python }} python${{ matrix.python }}-distutils
54-
sudo pip install autopep8
53+
sudo apt-get install -y python${{ matrix.python }} python${{ matrix.python }}-distutils python${{ matrix.python }}-venv
5554
- name: Run Python tests
5655
run: |
56+
python3 -v
57+
python${{ matrix.python }} -m venv python/myenv
58+
source python/myenv/bin/activate
59+
python3 -v
60+
echo PATH=$PATH >> $GITHUB_ENV
61+
sudo echo PATH=$PATH >> $GITHUB_ENV
62+
python3 -m pip install autopep8
5763
bin/before-install
5864
bin/test
5965
env:

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1+
# test
12
# CI::Queue
23

34
[![Gem Version](https://badge.fury.io/rb/ci-queue.svg)](https://rubygems.org/gems/ci-queue)
45
[![Tests](https://github.com/Shopify/ci-queue/workflows/Tests/badge.svg?branch=master)](https://github.com/Shopify/ci-queue/actions?query=workflow%3ATests)
56

6-
Distribute tests over many workers using a queue.
7+
Distribute tests over many workers using a queue.
78

89
## Why a queue?
910

@@ -48,4 +49,3 @@ Bug reports and pull requests are welcome on GitHub at https://github.com/Shopif
4849
## License
4950

5051
The code is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
51-

bin/before-install

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,11 @@ end
1010
case ENV['SUITE']
1111
when 'python'
1212
Dir.chdir('python/') do
13-
run('sudo', 'pip', 'install', '-U', 'pip')
14-
run('sudo', 'pip', 'install', 'setuptools==68.0.0')
15-
run('pip', '--version')
13+
run('python3', '-m', 'pip', '--version')
14+
run('python3', '-m', 'pip', 'install', '-U', 'pip')
15+
run('python3', '-m', 'pip', 'install', 'setuptools==68.0.0')
16+
run('python3', '-m', 'pip', '--version')
17+
run('ls', '-l', 'myenv/bin/')
1618
run('sudo', 'make', 'install')
1719
end
1820
when 'ruby'

python/Makefile

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
# Copyright (c) 2017 "Shopify inc." All rights reserved.
22
# Use of this source code is governed by a MIT-style license that can be found in the LICENSE file.
3+
PYTHON ?= myenv/bin/python
34
python_files := find . -path '*/.*' -prune -o -name '*.py' -print0
4-
python_version_full := $(wordlist 2,4,$(subst ., ,$(shell python --version 2>&1)))
5+
python_version_full := $(wordlist 2,4,$(subst ., ,$(shell $(PYTHON) --version 2>&1)))
56
python_version_major := $(word 1,${python_version_full})
67

78
TOX_ENV ?= py37,py38,py39,py310,py311
@@ -14,7 +15,7 @@ clean:
1415

1516
autopep8:
1617
@echo 'Auto Formatting...'
17-
@$(python_files) | xargs -0 autopep8 --jobs 0 --in-place --aggressive --global-config setup.cfg
18+
@$(python_files) | xargs -0 myenv/bin/autopep8 --jobs 0 --in-place --aggressive --global-config setup.cfg
1819

1920
lint:
2021
@echo 'Linting...'
@@ -29,11 +30,12 @@ run_tests: clean
2930
test: autopep8 run_tests
3031

3132
install:
32-
pip install --ignore-installed six -e .[test]
33+
@$(PYTHON) -v
34+
$(PYTHON) -m pip install --ignore-installed six -e .[test]
3335

3436
release:
3537
rm -rf build dist
36-
@python setup.py sdist bdist_wheel
38+
@$(PYTHON) setup.py sdist bdist_wheel
3739

3840
upload_test: release
3941
@twine upload dist/* -r testpypi

0 commit comments

Comments
 (0)