Skip to content
This repository was archived by the owner on Feb 17, 2021. It is now read-only.

Commit 37da832

Browse files
author
Thiago C. D'Ávila
authored
Merge pull request #44 from staticdev/action
Action
2 parents 18d77f4 + 6a71135 commit 37da832

4 files changed

Lines changed: 55 additions & 12 deletions

File tree

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* text=auto eol=lf

.github/workflows/coverage.yml

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,31 @@ jobs:
66
coverage:
77
runs-on: ubuntu-latest
88
steps:
9-
- uses: actions/checkout@v2.1.0
10-
- uses: actions/setup-python@v2
9+
- name: Check out the repository
10+
uses: actions/checkout@v2.1.0
11+
12+
- name: Set up Python
13+
uses: actions/setup-python@v2
1114
with:
1215
python-version: "3.8"
13-
- run: |
16+
17+
- name: Upgrade pip
18+
run: |
1419
pip install --constraint=.github/workflows/constraints.txt pip
15-
pip install --constraint=.github/workflows/constraints.txt nox poetry
16-
- run: nox --force-color --session=tests-3.8 -- --cov --cov-report=xml
20+
pip --version
21+
22+
- name: Install Poetry
23+
run: |
24+
pip install --constraint=.github/workflows/constraints.txt poetry
25+
poetry --version
26+
27+
- name: Install Nox
28+
run: |
29+
pip install --constraint=.github/workflows/constraints.txt nox
30+
nox --version
31+
32+
- name: Run Nox
33+
run: nox --force-color --session=tests-3.8 -- --cov --cov-report=xml
34+
1735
- if: always()
18-
uses: codecov/codecov-action@v1.0.6
36+
uses: codecov/codecov-action@v1.0.7
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/release-drafter@v5
12+
- name: Publish the release notes
13+
uses: release-drafter/release-drafter@v5.8.0
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/checkout@v2.1.0
10-
- uses: actions/setup-python@v2
11+
- name: Check out the repository
12+
uses: actions/checkout@v2.1.0
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/gh-action-pypi-publish@v1.1.0
1940
with:
2041
user: __token__

0 commit comments

Comments
 (0)