Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update continuous integration workflow configurations. #52

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
31 changes: 14 additions & 17 deletions .github/workflows/tests.yaml
Expand Up @@ -14,34 +14,38 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, ubuntu-18.04, ubuntu-20.04, windows-latest]
python-version: ['3.7', '3.8', '3.9', '3.10']
os: [macos-latest, ubuntu-20.04, ubuntu-22.04, windows-latest]
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']

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

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
denewiler marked this conversation as resolved.
Show resolved Hide resolved
with:
python-version: ${{ matrix.python-version }}

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

- uses: actions/cache@v3
if: startsWith(runner.os, 'Linux')
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-

- uses: actions/cache@v1
- uses: actions/cache@v3
if: startsWith(runner.os, 'macOS')
with:
path: ~/Library/Caches/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-

- uses: actions/cache@v1
- uses: actions/cache@v3
if: startsWith(runner.os, 'Windows')
with:
path: ~\AppData\Local\pip\Cache
Expand All @@ -65,14 +69,8 @@ jobs:

# Have to install newer version from non-apt source due to SSL library compatibility issues.
- name: Install tools (Linux)
if: matrix.os == 'ubuntu-18.04' || matrix.os == 'ubuntu-20.04'
if: matrix.os == 'ubuntu-20.04' || matrix.os == 'ubuntu-22.04'
run: |
sudo apt install curl
curl -sL https://deb.nodesource.com/setup_14.x -o nodesource_setup.sh
sudo bash nodesource_setup.sh
sudo apt install nodejs
sudo npm install -g n
sudo n stable
sudo npm install -g eslint
denewiler marked this conversation as resolved.
Show resolved Hide resolved
# eslint plugins and configs should be installed locally
# https://eslint.org/docs/user-guide/migrating-to-6.0.0#plugins-and-shareable-configs-are-no-longer-affected-by-eslints-location
Expand All @@ -87,7 +85,6 @@ jobs:
sudo npm install -g postcss-html # needed for stylelint to process html
sudo npm install -g stylelint
sudo npm install -g stylelint-config-standard
denewiler marked this conversation as resolved.
Show resolved Hide resolved
rm nodesource_setup.sh

- name: Mypy
run: |
Expand All @@ -98,17 +95,17 @@ jobs:
python -m tox

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2
uses: codecov/codecov-action@v3
with:
fail_ci_if_error: false

- name: Statick Documentation
if: matrix.os == 'ubuntu-18.04' || matrix.os == 'ubuntu-20.04'
if: matrix.os == 'ubuntu-20.04' || matrix.os == 'ubuntu-22.04'
run: |
statick . --check --profile documentation.yaml

- name: Self check
if: matrix.os == 'ubuntu-18.04' || matrix.os == 'ubuntu-20.04'
if: matrix.os == 'ubuntu-20.04' || matrix.os == 'ubuntu-22.04'
run: |
mkdir statick-output
statick . --output-directory statick-output --check --profile self_check.yaml
9 changes: 8 additions & 1 deletion CHANGELOG.md
Expand Up @@ -8,10 +8,17 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)

### Added

### Fixed
- Ubuntu 22.04 used in continuous integration workflows.
- Python 3.11 used in continuous integration workflows.

### Changed

- Update GitHub Actions to use latest versions.

### Removed

- Ubuntu 18.04 removed from continuous integration workflows.

## v0.1.0 - 2022-01-04

### Removed
Expand Down
1 change: 1 addition & 0 deletions setup.py
Expand Up @@ -47,6 +47,7 @@
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Software Development :: Testing",
],
)
1 change: 1 addition & 0 deletions tox.ini
Expand Up @@ -28,6 +28,7 @@ python =
3.8: py38
3.9: py39
3.10: py310
3.11: py311
denewiler marked this conversation as resolved.
Show resolved Hide resolved

[testenv]
changedir = {toxinidir}/output-{envname}
Expand Down