Skip to content

Beyondevil/cleanup #28

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

Merged
merged 2 commits into from
Mar 5, 2023
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
29 changes: 18 additions & 11 deletions .github/workflows/actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,21 @@ jobs:
name: Build Docs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: 3.6
python-version: '3.10'
- name: Install tox
run: python -m pip install --upgrade tox
- name: Build docs with tox
run: python -m tox -e docs
run: tox -e docs

tests:
uses: pytest-dev/pytest-html/.github/workflows/tests.yml@master
uses: ./.github/workflows/tests.yml

publish:
if: github.repository_owner == 'pytest-dev'
name: Publish to PyPI registry
needs:
- tests
Expand All @@ -41,14 +42,16 @@ jobs:
TOXENV: packaging

steps:
- name: Switch to using Python 3.6 by default
uses: actions/setup-python@v2
- name: Switch to using Python 3.10 by default
uses: actions/setup-python@v4
with:
python-version: 3.6
python-version: '3.10'

- name: Install tox
run: python -m pip install --user tox

- name: Check out src from Git
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
# Get shallow Git history (default) for tag creation events
# but have a complete clone for any other workflows.
Expand All @@ -63,6 +66,7 @@ jobs:
) &&
1 || 0
}}

- name: Drop Git tags from HEAD for non-tag-create events
if: >-
github.event_name != 'create' ||
Expand All @@ -71,8 +75,10 @@ jobs:
git tag --points-at HEAD
|
xargs git tag --delete

- name: Build dists
run: python -m tox

- name: Publish to test.pypi.org
if: >-
(
Expand All @@ -85,14 +91,15 @@ jobs:
github.event_name == 'create' &&
github.event.ref_type == 'tag'
)
uses: pypa/gh-action-pypi-publish@master
uses: pypa/gh-action-pypi-publish@v1
with:
password: ${{ secrets.testpypi_password }}
repository_url: https://test.pypi.org/legacy/

- name: Publish to pypi.org
if: >- # "create" workflows run separately from "push" & "pull_request"
github.event_name == 'create' &&
github.event.ref_type == 'tag'
uses: pypa/gh-action-pypi-publish@master
uses: pypa/gh-action-pypi-publish@v1
with:
password: ${{ secrets.pypi_password }}
3 changes: 2 additions & 1 deletion .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ on:

jobs:
tests:
uses: pytest-dev/pytest-html/.github/workflows/tests.yml@master
if: github.repository_owner == 'pytest-dev'
uses: ./.github/workflows/tests.yml
176 changes: 94 additions & 82 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,120 +5,132 @@ on:

jobs:
test_python:
name: ${{ matrix.name }}
runs-on: ${{ matrix.os }}
name: ${{ matrix.python-version }}
runs-on: ubuntu-latest
strategy:
matrix:
include:
- os: ubuntu-latest
name: py36-ubuntu
python-version: 3.6

- os: windows-latest
name: py36-windows
python-version: 3.6

- os: macOS-latest
name: py36-mac
python-version: 3.6
- tox-env: "py37"
python-version: "3.7"

- os: ubuntu-latest
name: py37-ubuntu
python-version: 3.7
# https://github.com/pytest-dev/pytest-html/issues/585
# - os: windows-latest
# name: py37-windows
# python-version: 3.7

- os: windows-latest
name: py37-windows
python-version: 3.7
# https://github.com/pytest-dev/pytest-html/issues/585
# - os: macOS-latest
# name: py37-mac
# python-version: 3.7

- os: macOS-latest
name: py37-mac
python-version: 3.7
- tox-env: "py38"
python-version: "3.8"

- os: ubuntu-latest
name: py38-ubuntu
python-version: 3.8
# https://github.com/pytest-dev/pytest-html/issues/585
# - os: windows-latest
# name: py38-windows
# python-version: 3.8

- os: windows-latest
name: py38-windows
python-version: 3.8
# https://github.com/pytest-dev/pytest-html/issues/585
# - os: macOS-latest
# name: py38-mac
# python-version: 3.8

- os: macOS-latest
name: py38-mac
python-version: 3.8
- tox-env: "py39"
python-version: "3.9"

- os: ubuntu-latest
name: py39-ubuntu
python-version: 3.9
- tox-env: "py310"
python-version: "3.10"

- os: windows-latest
name: py39-windows
python-version: 3.9
# https://github.com/pytest-dev/pytest-html/issues/585
# - os: windows-latest
# name: py39-windows
# python-version: 3.9

- os: macOS-latest
name: py39-mac
python-version: 3.9
# https://github.com/pytest-dev/pytest-html/issues/585
# - os: macOS-latest
# name: py39-mac
# python-version: 3.9

- os: ubuntu-latest
name: pypy3-ubuntu
python-version: pypy3
- tox-env: "pypy3"
python-version: "pypy3.9"
skip-coverage: true

- os: windows-latest
name: pypy3-windows
python-version: pypy3
# https://github.com/pytest-dev/pytest-html/issues/585
# - os: windows-latest
# name: pypy3-windows
# python-version: pypy3

# https://github.com/pytest-dev/pytest-html/issues/482
# - os: macOS-latest
# name: pypy3-mac
# python-version: pypy3

- os: ubuntu-latest
name: devel-ubuntu
python-version: 3.9
- tox-env: "devel"
python-version: "3.11-dev"

steps:
- name: Set Newline Behavior
run : git config --global core.autocrlf false
- uses: actions/checkout@master
run: git config --global core.autocrlf false

- uses: actions/checkout@v3

- name: Start chrome
run: ./start

- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '16.x'

- name: Install Dependencies
run: npm ci

- name: Build app
run: npm run build:ci

- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: ${{ matrix['python-version'] }}
python-version: ${{ matrix.python-version }}

- name: Install tox
run: python -m pip install --upgrade tox
- name: Get Tox Environment Name From Matrix Name
uses: rishabhgupta/split-by@v1
id: split-matrix-name
with:
string: '${{ matrix.name }}'
split-by: '-'

- name: Test with coverage
if: "! contains(matrix.name, 'pypy3')"
run: python -m tox -e ${{ steps.split-matrix-name.outputs._0}}-cov
if: ${{ ! matrix.skip-coverage }}
run: tox -e ${{ matrix.tox-env }}-cov

- name: Test without coverage
if: "contains(matrix.name, 'pypy3')"
run: python -m tox -e ${{ steps.split-matrix-name.outputs._0}}

# TODO: https://github.com/pytest-dev/pytest-html/issues/481
# - name: Upload coverage to codecov
# if: github.event.schedule == ''
# uses: codecov/codecov-action@v2
# with:
# fail_ci_if_error: true
# file: ./coverage.xml
# flags: tests
# name: ${{ matrix.py }} - ${{ matrix.os }}
# verbose: true
if: ${{ matrix.skip-coverage }}
run: tox -e ${{ matrix.tox-env }}

# TODO: https://github.com/pytest-dev/pytest-html/issues/481
- name: Upload coverage to codecov
if: >-
${{
! github.event.schedule &&
! matrix.skip-coverage &&
github.repository_owner == 'pytest-dev'
}}
uses: codecov/codecov-action@v3
with:
fail_ci_if_error: true
files: ./coverage.xml
flags: tests
name: ${{ matrix.tox-env }}
verbose: true

test_javascript:
name: grunt
name: mocha
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '12.x'
node-version: '16.x'
- name: Install Dependencies
run: npm install
- name: QUnit Tests
run: npm test
run: npm ci
- name: Mocha Tests
run: npm run unit
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ local.properties
# JS files/folders
## node / npm
node_modules/
package-lock.json

# MacOS files
.DS_Store
Expand Down
12 changes: 12 additions & 0 deletions docker-compose.tmpl.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
version: "3"

services:
chrome:
image: seleniarm/standalone-chromium:110.0
container_name: chrome
shm_size: '2gb'
ports:
- "4444:4444"
- "7900:7900"
volumes:
- "%%VOLUME%%:Z"
Loading