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

Refactor actions #36

Merged
merged 2 commits into from
May 20, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .github/workflows/constraints.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
pip==20.1
nox==2019.11.9
poetry==1.0.5
pre-commit==2.3.0
5 changes: 4 additions & 1 deletion .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
name: Release Drafter

on:
push:
branches:
- master

jobs:
draft_release:
runs-on: ubuntu-latest
steps:
- uses: release-drafter/release-drafter@v5.7.0
- name: Publish the release notes
uses: release-drafter/release-drafter@v5.8.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
31 changes: 26 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,41 @@
name: Release

on:
release:
types: [published]

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.1.0
- uses: actions/setup-python@v1.2.0
- name: Check out the repository
uses: actions/checkout@v2.1.0

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.8"
- run: |

- name: Upgrade pip
run: |
pip install --constraint=.github/workflows/constraints.txt pip
pip install --constraint=.github/workflows/constraints.txt nox poetry
- run: nox --force-color
pip --version

- name: Install Poetry
run: |
pip install --constraint=.github/workflows/constraints.txt poetry
poetry --version

- name: Install Nox
run: |
pip install --constraint=.github/workflows/constraints.txt nox
nox --version

- name: Run Nox
run: nox --force-color

- run: poetry build --ansi

- uses: pypa/gh-action-pypi-publish@v1.1.0
with:
user: __token__
Expand Down
42 changes: 33 additions & 9 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,43 @@
name: Tests

on: [push, pull_request]

jobs:
tests:
name: Tests (${{ matrix.python-version }}, ${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ["ubuntu-latest", "macos-latest"]
python-version: ['3.7', '3.8']
runs-on: ${{ matrix.os }}
name: Python ${{ matrix.python-version }}
include:
- { python-version: 3.8, os: ubuntu-latest }
# - { python-version: 3.8, os: windows-latest }
- { python-version: 3.8, os: macos-latest }
- { python-version: 3.7, os: ubuntu-latest }
steps:
- uses: actions/checkout@v2.1.0
- uses: actions/setup-python@v1.2.0
- name: Check out the repository
uses: actions/checkout@v2.1.0

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- run: |

- name: Upgrade pip
run: |
pip install --constraint=.github/workflows/constraints.txt pip
pip install --constraint=.github/workflows/constraints.txt nox poetry
- run: nox --force-color
pip --version

- name: Install Poetry
run: |
pip install --constraint=.github/workflows/constraints.txt poetry
poetry --version

- name: Install Nox
run: |
pip install --constraint=.github/workflows/constraints.txt nox
nox --version

- name: Run Nox
run: |
nox --force-color