Thanks to visit codestin.com
Credit goes to github.com

Skip to content
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
18 changes: 0 additions & 18 deletions .copier-answers.yml

This file was deleted.

12 changes: 0 additions & 12 deletions .flake8

This file was deleted.

20 changes: 5 additions & 15 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,27 +20,17 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: [3.7, 3.8, 3.9, '3.10']
python-version: [3.8, 3.9, '3.10', '3.11']
os: [ubuntu-latest, macOS-latest, windows-latest]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Set up PDM
uses: pdm-project/setup-pdm@main
uses: pdm-project/setup-pdm@v3
with:
python-version: ${{ matrix.python-version }}
- name: Set Variables
id: set_variables
run: |
echo "::set-output name=PIP_CACHE::$(pip cache dir)"
echo "::set-output name=PDM_CACHE::$(pdm config cache_dir)"
- name: Cache PIP
uses: actions/cache@v2
with:
path: |
${{ steps.set_variables.outputs.PIP_CACHE }}
${{ steps.set_variables.outputs.PDM_CACHE }}
key: ${{ runner.os }}-pip-${{ matrix.python-version }}
cache: 'true'

- name: Install dependencies
run: pdm install -dGtest
Expand Down
30 changes: 22 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,29 +3,43 @@ name: Release
on:
push:
tags:
- '*'
- "*"

jobs:
release-pypi:
name: release-pypi
runs-on: ubuntu-latest
permissions:
contents: write

steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: actions/checkout@v3
with:
python-version: '3.10'
fetch-depth: 0

- uses: actions/setup-node@v3
with:
node-version: 16

- run: npx changelogithub
continue-on-error: true
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

- uses: actions/setup-python@v4
with:
python-version: "3.10"

- name: Build artifacts
run: |
pip install build
python -m pip install build
python -m build

- name: Test Build
run: |
python3 -m venv fresh_env
. fresh_env/bin/activate
pip install dist/*.whl
monas --version
monas --help

- name: Upload to Pypi
run: |
pip install twine
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ docs/site
venv/
env/

.pdm.toml
.pdm-python
__pypackages__/

.nox/
Expand Down
20 changes: 7 additions & 13 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,13 @@ repos:
- id: end-of-file-fixer
- id: check-added-large-files

- repo: https://github.com/psf/black
rev: 22.3.0
hooks:
- id: black

- repo: https://github.com/pycqa/isort
rev: 5.10.1
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: 'v0.0.281'
hooks:
- id: isort
- id: ruff
args: [--fix, --exit-non-zero-on-fix, --show-fixes]

- repo: https://gitlab.com/pycqa/flake8
rev: 3.9.2
- repo: https://github.com/psf/black
rev: 23.7.0
hooks:
- id: flake8
additional_dependencies:
- flake8-bugbear
- id: black
8 changes: 8 additions & 0 deletions changelogithub.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"types": {
"feat": { "title": "🚀 Features" },
"fix": { "title": "🐞 Bug Fixes" },
"doc": { "title": "📝 Documentation" },
"chore": { "title": "💻 Chores" }
}
}
32 changes: 0 additions & 32 deletions news/towncrier_template.md

This file was deleted.

2 changes: 1 addition & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
os.environ["PDM_IGNORE_SAVED_PYTHON"] = "1"


@nox.session(python=("3.7", "3.8", "3.9", "3.10"))
@nox.session(python=("3.7", "3.8", "3.9", "3.10", "3.11"))
def test(session):
session.run("pdm", "install", "-dGtest", external=True)
session.run("pytest", "tests/")
Expand Down
Loading