diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml index c8e6205..7a04410 100644 --- a/.github/release-drafter.yml +++ b/.github/release-drafter.yml @@ -1,27 +1,29 @@ categories: - - title: ':boom: Breaking Changes' - label: 'breaking' - - title: ':package: Build System' - label: 'build' - - title: ':construction_worker: Continuous Integration' - label: 'ci' - - title: ':books: Documentation' - label: 'documentation' - - title: ':rocket: Features' - label: 'enhancement' - - title: ':beetle: Fixes' - label: 'bug' - - title: ':racehorse: Performance' - label: 'performance' - - title: ':hammer: Refactoring' - label: 'refactoring' - - title: ':fire: Removals and Deprecations' - label: 'removal' - - title: ':lipstick: Style' - label: 'style' - - title: ':rotating_light: Testing' - label: 'testing' + - title: ":boom: Breaking Changes" + label: "breaking" + - title: ":rocket: Features" + label: "enhancement" + - title: ":fire: Removals and Deprecations" + label: "removal" + - title: ":beetle: Fixes" + label: "bug" + - title: ":racehorse: Performance" + label: "performance" + - title: ":rotating_light: Testing" + label: "testing" + - title: ":construction_worker: Continuous Integration" + label: "ci" + - title: ":books: Documentation" + label: "documentation" + - title: ":hammer: Refactoring" + label: "refactoring" + - title: ":lipstick: Style" + label: "style" + - title: ":package: Dependencies" + labels: + - "dependencies" + - "build" template: | - ## What’s Changed + ## Changes $CHANGES diff --git a/.github/workflows/constraints.txt b/.github/workflows/constraints.txt new file mode 100644 index 0000000..9b28087 --- /dev/null +++ b/.github/workflows/constraints.txt @@ -0,0 +1,4 @@ +pip==20.1 +nox==2019.11.9 +poetry==1.0.5 +pre-commit==2.3.0 diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml index dfff4c2..96b641c 100644 --- a/.github/workflows/release-drafter.yml +++ b/.github/workflows/release-drafter.yml @@ -7,6 +7,6 @@ jobs: draft_release: runs-on: ubuntu-latest steps: - - uses: release-drafter/release-drafter@v5 + - uses: release-drafter/release-drafter@v5.7.0 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 85d6279..7472bec 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -6,13 +6,16 @@ jobs: release: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-python@v1 - with: - python-version: '3.8' - architecture: x64 - - run: pip install nox==2019.11.9 - - run: pip install poetry==1.0.5 - - run: nox - - run: poetry build - - run: poetry publish --username=__token__ --password=${{ secrets.PYPI_TOKEN }} + - uses: actions/checkout@v2.1.0 + - uses: actions/setup-python@v1.2.0 + with: + python-version: "3.8" + - run: | + pip install --constraint=.github/workflows/constraints.txt pip + pip install --constraint=.github/workflows/constraints.txt nox poetry + - run: nox --force-color + - run: poetry build --ansi + - uses: pypa/gh-action-pypi-publish@v1.1.0 + with: + user: __token__ + password: ${{ secrets.PYPI_TOKEN }} diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index a21e1e3..c036ac3 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -2,17 +2,18 @@ name: Tests on: push jobs: tests: - runs-on: ubuntu-latest strategy: matrix: + os: ["ubuntu-latest", "macos-latest"] python-version: ['3.7', '3.8'] + runs-on: ${{ matrix.os }} name: Python ${{ matrix.python-version }} steps: - - uses: actions/checkout@v2 - - uses: actions/setup-python@v1 - with: - python-version: ${{ matrix.python-version }} - architecture: x64 - - run: pip install nox==2019.11.9 - - run: pip install poetry==1.0.5 - - run: nox + - uses: actions/checkout@v2.1.0 + - uses: actions/setup-python@v1.2.0 + with: + python-version: ${{ matrix.python-version }} + - run: | + pip install --constraint=.github/workflows/constraints.txt pip + pip install --constraint=.github/workflows/constraints.txt nox poetry + - run: nox --force-color diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 2548eab..0000000 --- a/.travis.yml +++ /dev/null @@ -1,17 +0,0 @@ -language: python - -python: - - "3.7" - -env: - - DJANGO="Django>=2.2.0,<2.3.0" - - DJANGO="Django>=3.0.0,<3.1.0" - -before_install: - - pip install poetry nox - -install: - - pip install -q $DJANGO - - poetry install - -script: nox