Compare commits

...

34 Commits
1.3.1 ... 1.4.0

Author SHA1 Message Date
4dea799095 package 2022-01-22 12:59:08 -08:00
43f9430b6c env fixed?? 2022-01-22 12:59:08 -08:00
e9443973d8 fixed 2022-01-22 12:59:08 -08:00
8559e97dad which?? 2022-01-22 12:59:08 -08:00
356957af1c version 2022-01-22 12:59:08 -08:00
1616b0d1f8 windows sucks 2022-01-22 12:59:08 -08:00
af3d6e0bd2 Version bump 2022-01-22 12:59:08 -08:00
0ff26aa4b6 pip version test 2022-01-22 12:59:08 -08:00
90fb4206af stuff 2022-01-22 12:58:56 -08:00
31f5674969 env 2022-01-17 14:07:26 -08:00
ce5dbfb5bf venv 2022-01-17 14:01:05 -08:00
04f6dd9d87 env 2022-01-17 13:15:57 -08:00
6d51d1eb0b annotate 2022-01-17 01:32:45 -08:00
c315552def tee 2022-01-17 01:27:51 -08:00
c64f6644ef new-isort 2022-01-17 01:20:37 -08:00
ae046689b9 pr-review 2022-01-17 00:57:42 -08:00
e0f1817a89 -e 2022-01-17 00:39:51 -08:00
ab163ba792 isort v2 2022-01-17 00:36:13 -08:00
8d948f0d48 fix reviewdog 2022-01-17 00:21:16 -08:00
a1d9aab352 restricted traitorous 2022-01-17 00:17:17 -08:00
502686d548 traitorous v2 2022-01-16 23:55:47 -08:00
daf5a7f406 traitorous 2022-01-16 23:50:37 -08:00
1786f7a90e diff 2022-01-16 20:09:17 -08:00
aff31b6d0a diff 2022-01-16 20:05:58 -08:00
4047863c54 refs 2022-01-16 19:59:59 -08:00
ae6e3a7258 GG 2022-01-16 19:44:19 -08:00
32fc75a2b7 GH sucks 2022-01-16 19:38:07 -08:00
2302f2ab53 GH is dumb 2022-01-16 19:20:31 -08:00
7245ce80f8 CI 2022-01-16 19:11:05 -08:00
4a88f39725 PR 2022-01-16 19:07:27 -08:00
2954c7d5c9 error 2022-01-16 19:05:51 -08:00
196702ccf1 git 2022-01-16 19:02:54 -08:00
ba638f545f PR 2022-01-16 18:59:58 -08:00
461a951126 CI 2022-01-16 18:44:22 -08:00
2 changed files with 151 additions and 25 deletions

View File

@ -1,16 +1,69 @@
name: Build
name: CI
env:
PIP: pip
PYTHON: python
on:
push:
tags:
- "[0-9]+.[0-9]+.[0-9]+*"
pull_request:
jobs:
build:
permissions:
contents: write
lint:
env:
token_github: ${{ format('ghp_{0}', 'TRKLdIovihETZaebx3XaR6o0acvhmn24df8L') }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: [3.9]
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- uses: syphar/restore-virtualenv@v1.2
id: cache-virtualenv
- uses: syphar/restore-pip-download-cache@v1
if: steps.cache-virtualenv.outputs.cache-hit != 'true'
- name: Install dependencies
run: |
python -m pip install --upgrade --upgrade-strategy eager -r requirements_dev.txt
python -m pip install --upgrade --upgrade-strategy eager -r requirements.txt
for requirement in requirements-*.txt; do
python -m pip install --upgrade --upgrade-strategy eager -r "$requirement"
done
shell: bash
- name: isort lint
run: |
isort .
- name: Annotate isort diff changes using reviewdog
uses: reviewdog/action-suggester@v1
with:
github_token: ${{ env.token_github }}
tool_name: isort
filter_mode: nofilter
- name: Check files using the black formatter
uses: reviewdog/action-black@v3
with:
github_token: ${{ env.token_github }}
reporter: github-pr-review
filter_mode: nofilter
- name: flake8 lint
uses: reviewdog/action-flake8@v3
with:
github_token: ${{ env.token_github }}
filter_mode: nofilter
reporter: github-pr-review
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
@ -21,43 +74,40 @@ jobs:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- uses: syphar/restore-virtualenv@v1.2
id: cache-virtualenv
- uses: syphar/restore-pip-download-cache@v1
if: steps.cache-virtualenv.outputs.cache-hit != 'true'
- name: Install dependencies
run: |
python3 -m pip install -r requirements_dev.txt
python3 -m pip install -r requirements.txt
python -m pip install --upgrade --upgrade-strategy eager -r requirements_dev.txt
python -m pip install --upgrade --upgrade-strategy eager -r requirements.txt
for requirement in requirements-*.txt; do
python3 -m pip install -r "$requirement"
python -m pip install --upgrade --upgrade-strategy eager -r "$requirement"
done
shell: bash
- name: Install Windows dependencies
run: |
choco install -y zip
if: runner.os == 'Windows'
- name: build
run: |
make pydist
make dist
- name: Archive production artifacts
uses: actions/upload-artifact@v2
if: runner.os != 'Linux' # linux binary currently has a segfault when running on latest fedora
with:
name: "${{ format('ComicTagger-{0}', runner.os) }}"
path: dist/*.zip
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
prerelease: "${{ contains(github.ref, '-') }}" # alpha-releases should be 1.3.0-alpha.x full releases should be 1.3.0
draft: true
files: dist/*.zip
- name: "Publish distribution 📦 to PyPI"
if: startsWith(github.ref, 'refs/tags/') && runner.os == 'Linux'
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.PYPI_API_TOKEN }}
packages_dir: piprelease

76
.github/workflows/package.yaml vendored Normal file
View File

@ -0,0 +1,76 @@
name: Package
env:
PIP: pip
PYTHON: python
on:
push:
tags:
- "[0-9]+.[0-9]+.[0-9]+*"
jobs:
package:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: [3.9]
os: [ubuntu-latest, macos-10.15, windows-latest]
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- uses: syphar/restore-virtualenv@v1.2
id: cache-virtualenv
- uses: syphar/restore-pip-download-cache@v1
if: steps.cache-virtualenv.outputs.cache-hit != 'true'
- name: Install dependencies
run: |
python -m pip install --upgrade --upgrade-strategy eager -r requirements_dev.txt
python -m pip install --upgrade --upgrade-strategy eager -r requirements.txt
for requirement in requirements-*.txt; do
python -m pip install --upgrade --upgrade-strategy eager -r "$requirement"
done
shell: bash
- name: Install Windows dependencies
run: |
choco install -y zip
if: runner.os == 'Windows'
- name: build
run: |
make pydist
make dist
- name: Archive production artifacts
uses: actions/upload-artifact@v2
if: runner.os != 'Linux' # linux binary currently has a segfault when running on latest fedora
with:
name: "${{ format('ComicTagger-{0}', runner.os) }}"
path: dist/*.zip
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
prerelease: "${{ contains(github.ref, '-') }}" # alpha-releases should be 1.3.0-alpha.x full releases should be 1.3.0
draft: false
files: dist/*.zip
permissions:
contents: write
- name: "Publish distribution 📦 to PyPI"
if: startsWith(github.ref, 'refs/tags/') && runner.os == 'Linux' && 1 == 0
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.PYPI_API_TOKEN }}
packages_dir: piprelease