Update config
This commit is contained in:
parent
aefa7cef1b
commit
5b0c879fa0
4
.github/workflows/deploy.yml
vendored
4
.github/workflows/deploy.yml
vendored
|
@ -12,7 +12,7 @@ on:
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
if: github.repository_owner == 'pylast'
|
if: github.repository_owner == 'pylast'
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
@ -24,7 +24,7 @@ jobs:
|
||||||
with:
|
with:
|
||||||
python-version: "3.10"
|
python-version: "3.10"
|
||||||
cache: pip
|
cache: pip
|
||||||
cache-dependency-path: "setup.py"
|
cache-dependency-path: setup.cfg
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
|
|
2
.github/workflows/lint.yml
vendored
2
.github/workflows/lint.yml
vendored
|
@ -4,7 +4,7 @@ on: [push, pull_request, workflow_dispatch]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
lint:
|
lint:
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
18
.github/workflows/require-pr-label.yml
vendored
Normal file
18
.github/workflows/require-pr-label.yml
vendored
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
name: Require PR label
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
types: [opened, reopened, labeled, unlabeled, synchronize]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
label:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: mheap/github-action-required-labels@v1
|
||||||
|
with:
|
||||||
|
mode: minimum
|
||||||
|
count: 1
|
||||||
|
labels:
|
||||||
|
"changelog: Added, changelog: Changed, changelog: Deprecated, changelog:
|
||||||
|
Fixed, changelog: Removed, changelog: Security, changelog: skip"
|
9
.github/workflows/test.yml
vendored
9
.github/workflows/test.yml
vendored
|
@ -12,10 +12,7 @@ jobs:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
python-version: ["pypy-3.8", "3.7", "3.8", "3.9", "3.10"]
|
python-version: ["pypy-3.8", "3.7", "3.8", "3.9", "3.10"]
|
||||||
os: [ubuntu-20.04]
|
os: [ubuntu-latest]
|
||||||
include:
|
|
||||||
# Include new variables for Codecov
|
|
||||||
- { codecov-flag: GHA_Ubuntu2004, os: ubuntu-20.04 }
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
@ -25,7 +22,7 @@ jobs:
|
||||||
with:
|
with:
|
||||||
python-version: ${{ matrix.python-version }}
|
python-version: ${{ matrix.python-version }}
|
||||||
cache: pip
|
cache: pip
|
||||||
cache-dependency-path: "setup.py"
|
cache-dependency-path: setup.cfg
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
|
@ -45,5 +42,5 @@ jobs:
|
||||||
- name: Upload coverage
|
- name: Upload coverage
|
||||||
uses: codecov/codecov-action@v2
|
uses: codecov/codecov-action@v2
|
||||||
with:
|
with:
|
||||||
flags: ${{ matrix.codecov-flag }}
|
flags: ${{ matrix.os }}
|
||||||
name: ${{ matrix.os }} Python ${{ matrix.python-version }}
|
name: ${{ matrix.os }} Python ${{ matrix.python-version }}
|
||||||
|
|
2
setup.py
2
setup.py
|
@ -1,7 +1,7 @@
|
||||||
from setuptools import setup
|
from setuptools import setup
|
||||||
|
|
||||||
|
|
||||||
def local_scheme(version) -> str:
|
def local_scheme(version: str) -> str:
|
||||||
"""Skip the local version (eg. +xyz of 0.6.1.dev4+gdf99fe2)
|
"""Skip the local version (eg. +xyz of 0.6.1.dev4+gdf99fe2)
|
||||||
to be able to upload to Test PyPI"""
|
to be able to upload to Test PyPI"""
|
||||||
return ""
|
return ""
|
||||||
|
|
Loading…
Reference in a new issue