Skip to content

Commit 2f37aa3

Browse files
committed
Update CI suite
1 parent 3c2751c commit 2f37aa3

File tree

1 file changed

+22
-45
lines changed

1 file changed

+22
-45
lines changed

.github/workflows/ci.yml

Lines changed: 22 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -11,26 +11,21 @@ jobs:
1111
black:
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/setup-python@v2
15-
- uses: actions/checkout@v2
14+
- uses: actions/setup-python@v2.3.2
15+
- uses: actions/checkout@v2.4.0
1616
- run: python -m pip install black
1717
- run: black --check --diff .
1818

1919
docs:
2020
runs-on: ubuntu-latest
2121
steps:
22-
- name: Set up Python
23-
uses: actions/setup-python@v2
24-
- uses: actions/checkout@v2
25-
- name: Install binary dependencies
26-
run: sudo apt-get install -y python3-enchant graphviz
27-
- name: Install Python dependencies
28-
run: |
29-
python -m pip install --upgrade pip setuptools
30-
pip install sphinxcontrib-spelling
31-
pip install -e '.[docs]'
32-
- name: Build documentation
33-
run: python setup.py build_sphinx -W -b spelling
22+
- uses: actions/[email protected]
23+
- uses: actions/[email protected]
24+
- run: sudo apt install -y python3-enchant graphviz
25+
- run: python -m pip install --upgrade pip setuptools
26+
- run: pip install sphinxcontrib-spelling
27+
- run: pip install -e '.[docs]'
28+
- run: python setup.py build_sphinx -W -b spelling
3429

3530
dist:
3631
runs-on: ubuntu-latest
@@ -57,25 +52,16 @@ jobs:
5752
- "3.2a"
5853
- "4.0a"
5954
steps:
60-
- name: Set up Python ${{ matrix.python-version }}
61-
uses: actions/setup-python@v2
55+
- uses: actions/[email protected]
6256
with:
6357
python-version: ${{ matrix.python-version }}
64-
- uses: actions/checkout@v2
65-
- name: Install binary dependencies
66-
run: |
67-
sudo apt-get update
68-
sudo apt-get install -y graphviz redis-server
69-
- name: Install Python dependencies
70-
run: |
71-
python -m pip install --upgrade pip setuptools wheel codecov
72-
python -m pip install -e .[dramatiq]
73-
python -m pip install django~=${{ matrix.django-version }}
74-
- name: Run tests
75-
run: python setup.py test
58+
- uses: actions/[email protected]
59+
- run: sudo apt install -y graphviz redis-server
60+
- run: python -m pip install --upgrade pip setuptools wheel codecov
61+
- run: python -m pip install -e .[dramatiq]
62+
- run: python -m pip install "django~=${{ matrix.django-version }}"
63+
- run: python setup.py test
7664
- run: codecov
77-
env:
78-
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
7965

8066
extras:
8167
needs:
@@ -88,19 +74,10 @@ jobs:
8874
- celery
8975
- dramatiq,reversion
9076
steps:
91-
- name: Set up Python ${{ matrix.python-version }}
92-
uses: actions/setup-python@v2
93-
- uses: actions/checkout@v2
94-
- name: Install binary dependencies
95-
run: |
96-
sudo apt-get update
97-
sudo apt-get install -y graphviz redis-server
98-
- name: Install Python dependencies
99-
run: |
100-
python -m pip install --upgrade pip setuptools wheel codecov
101-
python -m pip install -e .[${{ matrix.extras }}]
102-
- name: Run tests
103-
run: python setup.py test
77+
- uses: actions/[email protected]
78+
- uses: actions/[email protected]
79+
- run: sudo apt-get install -y graphviz redis-server
80+
- run: python -m pip install --upgrade pip setuptools wheel codecov
81+
- run: python -m pip install -e .[${{ matrix.extras }}]
82+
- run: python setup.py test
10483
- run: codecov
105-
env:
106-
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)