Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/four-point-oh'
Browse files Browse the repository at this point in the history
  • Loading branch information
deathaxe committed Dec 2, 2023
2 parents cfaaeb5 + e79e893 commit 284df2c
Show file tree
Hide file tree
Showing 208 changed files with 22,719 additions and 13,277 deletions.
16 changes: 16 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# git
.github/ export-ignore
.git export-ignore
.gitignore export-ignore
.gitattributes export-ignore

# development utilities
/dev/ export-ignore
.travis.yml export-ignore
tox.ini export-ignore

# unittests
tests/ export-ignore

# example files
/example-*.json export-ignore
126 changes: 62 additions & 64 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,96 +1,93 @@
name: CI

on:
push:
branches:
- master
pull_request:
branches:
- master
on: [push, pull_request]

jobs:
build-38:
name: Python 3.8.7 on ${{ matrix.os }} ${{ matrix.arch }}
test-all-38:
name: Python 3.8 on ${{ matrix.os }} ${{ matrix.arch }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- windows-2019
- macos-10.15
- ubuntu-18.04
- macos-11
- ubuntu-20.04
arch:
- x86
- x64
exclude:
- os: macos-10.15
- os: macos-11
arch: x86
- os: ubuntu-18.04
- os: ubuntu-20.04
arch: x86
steps:
- uses: actions/checkout@master
- uses: actions/setup-python@v2
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: '3.8.7'
python-version: '3.8'
architecture: ${{ matrix.arch }}
- name: Install dependencies
run: python dev/deps.py
run: pip install -U flake8 pytest
- name: Run linter
run: python dev/lint.py
run: flake8
- name: Run tests
run: python dev/tests.py
run: pytest
env:
ST_DIR: ~/sublime_text
GH_PASS: ${{ secrets.GH_PASS }}
GL_PASS: ${{ secrets.GL_PASS }}
BB_PASS: ${{ secrets.BB_PASS }}

build-linux-33:
name: Python 3.3.7 on ubuntu-18.04 x64
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@master
- uses: actions/setup-python@main
with:
python-version: '3.3.7'
architecture: x64
- name: Install dependencies
run: python dev/deps.py
- name: Run linter
run: python dev/lint.py
- name: Run tests
run: python dev/tests.py
env:
GH_PASS: ${{ secrets.GH_PASS }}
GL_PASS: ${{ secrets.GL_PASS }}
BB_PASS: ${{ secrets.BB_PASS }}
# test-linux-33:
# name: Python 3.3.7 on ubuntu-18.04 x64
# runs-on: ubuntu-18.04
# steps:
# - uses: actions/checkout@v3
# - uses: actions/setup-python@v4
# with:
# python-version: '3.3.7'
# architecture: x64
# - name: Install dependencies
# run: python dev/deps.py
# - name: Run linter
# run: python dev/lint.py
# - name: Run tests
# run: python dev/tests.py
# env:
# ST_DIR: ~/sublime_text
# GH_PASS: ${{ secrets.GH_PASS }}
# GL_PASS: ${{ secrets.GL_PASS }}
# BB_PASS: ${{ secrets.BB_PASS }}

build-mac-33:
name: Python 3.3.7 on macos-10.15 x64
runs-on: macos-10.15
steps:
- uses: actions/checkout@master
# test-mac-33:
# name: Python 3.3.7 on macos-11 x64
# runs-on: macos-11
# steps:
# - uses: actions/checkout@v3

- name: Check pyenv
id: check-pyenv
uses: actions/cache@v2
with:
path: ~/.pyenv
key: macos-10.15-3.3-pyenv
# - name: Check pyenv
# id: check-pyenv
# uses: actions/cache@v3
# with:
# path: ~/.pyenv
# key: macos-11-3.3-pyenv

- name: Install Python 3.3
run: python dev/pyenv-install.py 3.3 >> $GITHUB_PATH
# - name: Install Python 3.3
# run: python dev/pyenv-install.py 3.3 >> $GITHUB_PATH

- name: Install dependencies
run: python dev/deps.py
- name: Run linter
run: python dev/lint.py
- name: Run tests
run: python dev/tests.py
env:
GH_PASS: ${{ secrets.GH_PASS }}
GL_PASS: ${{ secrets.GL_PASS }}
BB_PASS: ${{ secrets.BB_PASS }}
# - name: Install dependencies
# run: python dev/deps.py
# - name: Run linter
# run: python dev/lint.py
# - name: Run tests
# run: python dev/tests.py
# env:
# ST_DIR: ~/sublime_text
# GH_PASS: ${{ secrets.GH_PASS }}
# GL_PASS: ${{ secrets.GL_PASS }}
# BB_PASS: ${{ secrets.BB_PASS }}

build-windows-33:
test-windows-33:
name: Python 3.3.5 on windows-2019 ${{ matrix.arch }}
runs-on: windows-2019
strategy:
Expand All @@ -99,11 +96,11 @@ jobs:
- 'x86'
- 'x64'
steps:
- uses: actions/checkout@master
- uses: actions/checkout@v3

- name: Cache Python
id: cache-python
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ~/AppData/Local/Python3.3-${{ matrix.arch }}
key: windows-2019-python-3.3-${{ matrix.arch }}
Expand All @@ -118,6 +115,7 @@ jobs:
- name: Run tests
run: python dev/tests.py
env:
ST_DIR: ~/sublime_text
GH_PASS: ${{ secrets.GH_PASS }}
GL_PASS: ${{ secrets.GL_PASS }}
BB_PASS: ${{ secrets.BB_PASS }}
16 changes: 14 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
# development dependencies
dev/.lint-deps/
.venv*/

# linter cache
.mypy_cache/
.pytest_cache/
.ropeproject/

# python cache
__pycache__/
*.pyc
*.pyo

# Sublime Text files
*.sublime-project
*.thTheme.cache
*.sublime-workspace
*.mypy_cache/
*.thTheme.cache
1 change: 1 addition & 0 deletions .python-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.8
22 changes: 0 additions & 22 deletions .travis.yml

This file was deleted.

Loading

0 comments on commit 284df2c

Please sign in to comment.