mirror of
https://github.com/dh1tw/pyhamtools.git
synced 2026-04-21 06:13:57 +00:00
consolidating runner
This commit is contained in:
parent
51378cc6f1
commit
f3441d0297
2 changed files with 14 additions and 12 deletions
24
.github/workflows/test.yml
vendored
24
.github/workflows/test.yml
vendored
|
|
@ -4,14 +4,12 @@ on: [push, pull_request]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test_linux:
|
test_linux:
|
||||||
|
# Ubuntu 20.04 is still required for python 3.6; this doesn't work on Ubuntu 22.04 anymore
|
||||||
runs-on: "ubuntu-20.04"
|
runs-on: "ubuntu-20.04"
|
||||||
name: "Ubuntu 20.04 - Python ${{ matrix.python-version }}"
|
name: "Ubuntu 20.04 - Python ${{ matrix.python-version }}"
|
||||||
env:
|
|
||||||
USING_COVERAGE: '3.11'
|
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
python-version: ["3.6", "3.7", "3.8", "pypy3.7", "pypy3.8","3.11", "3.10", "3.9", "pypy3.9"]
|
python-version: ["3.6"]
|
||||||
redis-version: [6]
|
redis-version: [6]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|
@ -29,10 +27,9 @@ jobs:
|
||||||
set -xe
|
set -xe
|
||||||
sudo apt-get install -y libxml2-dev libxslt-dev
|
sudo apt-get install -y libxml2-dev libxslt-dev
|
||||||
python -VV
|
python -VV
|
||||||
python -m pip install --upgrade pip setuptools wheel codecov
|
python -m pip install --upgrade pip setuptools
|
||||||
python -m pip install -e .
|
python -m pip install -e .
|
||||||
python -m pip install -r requirements-pytest.txt
|
python -m pip install -r requirements-pytest.txt
|
||||||
python -m pip install -r requirements-docs.txt
|
|
||||||
|
|
||||||
- name: Start Redis
|
- name: Start Redis
|
||||||
uses: supercharge/redis-github-action@1.2.0
|
uses: supercharge/redis-github-action@1.2.0
|
||||||
|
|
@ -49,9 +46,7 @@ jobs:
|
||||||
# of concurrent API calls on Clublog and QRZ.com when all CI jobs execute simultaneously
|
# of concurrent API calls on Clublog and QRZ.com when all CI jobs execute simultaneously
|
||||||
run: |
|
run: |
|
||||||
sleep $[ ( $RANDOM % 10 ) + 1 ]s
|
sleep $[ ( $RANDOM % 10 ) + 1 ]s
|
||||||
pytest --cov=./
|
pytest ./test
|
||||||
if [[ $PYTHON_VERSION == 3.11 ]]; then codecov; fi
|
|
||||||
cd docs && make html
|
|
||||||
|
|
||||||
test_linux_ubuntu_22:
|
test_linux_ubuntu_22:
|
||||||
runs-on: "ubuntu-22.04"
|
runs-on: "ubuntu-22.04"
|
||||||
|
|
@ -61,7 +56,7 @@ jobs:
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
python-version: ["3.12"]
|
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "pypy3.7", "pypy3.8", "pypy3.9", "pypy3.10"]
|
||||||
redis-version: [6]
|
redis-version: [6]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|
@ -99,7 +94,14 @@ jobs:
|
||||||
# of concurrent API calls on Clublog and QRZ.com when all CI jobs execute simultaneously
|
# of concurrent API calls on Clublog and QRZ.com when all CI jobs execute simultaneously
|
||||||
run: |
|
run: |
|
||||||
sleep $[ ( $RANDOM % 10 ) + 1 ]s
|
sleep $[ ( $RANDOM % 10 ) + 1 ]s
|
||||||
pytest
|
if [[ $PYTHON_VERSION == 3.11 ]]
|
||||||
|
then
|
||||||
|
pytest --cov=test/
|
||||||
|
codecov
|
||||||
|
else
|
||||||
|
pytest test/
|
||||||
|
fi
|
||||||
|
cd docs && make html
|
||||||
|
|
||||||
# publish_package:
|
# publish_package:
|
||||||
# runs-on: "ubuntu-latest"
|
# runs-on: "ubuntu-latest"
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
pytest>=7.0.0; python_version>='3.7'
|
pytest>=7.0.0; python_version>='3.7'
|
||||||
pytest==4.6.11; python_version<='3.6' and python_version>='2.7'
|
pytest==4.6.11; python_version=='3.6'
|
||||||
pytest-blockage>=0.2.2
|
pytest-blockage>=0.2.2
|
||||||
pytest-localserver>=0.5
|
pytest-localserver>=0.5
|
||||||
pytest-cov>=2.12
|
pytest-cov>=2.12
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue