Skip to content
This repository was archived by the owner on Aug 19, 2022. It is now read-only.

Commit a8c3dda

Browse files
author
staticdev
committed
Refactor actions
1 parent 6ad086f commit a8c3dda

File tree

4 files changed

+63
-16
lines changed

4 files changed

+63
-16
lines changed

.github/workflows/constraints.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
pip==20.1
22
nox==2019.11.9
33
poetry==1.0.5
4-
pre-commit==2.3.0

.github/workflows/release-drafter.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
name: Release Drafter
2+
23
on:
34
push:
45
branches:
56
- master
7+
68
jobs:
79
draft_release:
810
runs-on: ubuntu-latest
911
steps:
10-
- uses: release-drafter/[email protected]
12+
- name: Publish the release notes
13+
uses: release-drafter/[email protected]
1114
env:
1215
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/release.yml

Lines changed: 26 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,41 @@
11
name: Release
2+
23
on:
34
release:
45
types: [published]
6+
57
jobs:
68
release:
79
runs-on: ubuntu-latest
810
steps:
9-
- uses: actions/[email protected]
10-
- uses: actions/[email protected]
11+
- name: Check out the repository
12+
uses: actions/[email protected]
13+
14+
- name: Set up Python
15+
uses: actions/setup-python@v2
1116
with:
1217
python-version: "3.8"
13-
- run: |
18+
19+
- name: Upgrade pip
20+
run: |
1421
pip install --constraint=.github/workflows/constraints.txt pip
15-
pip install --constraint=.github/workflows/constraints.txt nox poetry
16-
- run: nox --force-color
22+
pip --version
23+
24+
- name: Install Poetry
25+
run: |
26+
pip install --constraint=.github/workflows/constraints.txt poetry
27+
poetry --version
28+
29+
- name: Install Nox
30+
run: |
31+
pip install --constraint=.github/workflows/constraints.txt nox
32+
nox --version
33+
34+
- name: Run Nox
35+
run: nox --force-color
36+
1737
- run: poetry build --ansi
38+
1839
- uses: pypa/[email protected]
1940
with:
2041
user: __token__

.github/workflows/tests.yml

Lines changed: 33 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,43 @@
11
name: Tests
2+
23
on: [push, pull_request]
4+
35
jobs:
46
tests:
7+
name: Tests (${{ matrix.python-version }}, ${{ matrix.os }})
8+
runs-on: ${{ matrix.os }}
59
strategy:
10+
fail-fast: false
611
matrix:
7-
os: ["ubuntu-latest", "macos-latest"]
8-
python-version: ['3.7', '3.8']
9-
runs-on: ${{ matrix.os }}
10-
name: Python ${{ matrix.python-version }}
12+
include:
13+
- { python-version: 3.8, os: ubuntu-latest }
14+
- { python-version: 3.8, os: windows-latest }
15+
- { python-version: 3.8, os: macos-latest }
16+
- { python-version: 3.7, os: ubuntu-latest }
1117
steps:
12-
- uses: actions/[email protected]
13-
- uses: actions/[email protected]
18+
- name: Check out the repository
19+
uses: actions/[email protected]
20+
21+
- name: Set up Python ${{ matrix.python-version }}
22+
uses: actions/setup-python@v2
1423
with:
1524
python-version: ${{ matrix.python-version }}
16-
- run: |
25+
26+
- name: Upgrade pip
27+
run: |
1728
pip install --constraint=.github/workflows/constraints.txt pip
18-
pip install --constraint=.github/workflows/constraints.txt nox poetry
19-
- run: nox --force-color
29+
pip --version
30+
31+
- name: Install Poetry
32+
run: |
33+
pip install --constraint=.github/workflows/constraints.txt poetry
34+
poetry --version
35+
36+
- name: Install Nox
37+
run: |
38+
pip install --constraint=.github/workflows/constraints.txt nox
39+
nox --version
40+
41+
- name: Run Nox
42+
run: |
43+
nox --force-color

0 commit comments

Comments
 (0)