aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/coverage.yml36
-rw-r--r--.github/workflows/github-actions.yml184
2 files changed, 39 insertions, 181 deletions
diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml
index 79c7a5f..3076588 100644
--- a/.github/workflows/coverage.yml
+++ b/.github/workflows/coverage.yml
@@ -5,21 +5,21 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- - uses: actions/checkout@v5
- - uses: actions/setup-python@v5
- with:
- python-version: 3.11
- - name: install dependencies
- run: |
- python -m pip install --upgrade pip
- python -mpip install --progress-bar=off -r ci/requirements.txt
- virtualenv --version
- pip --version
- tox --version
- pip list --format=freeze
- - name: upload coverage reports
- run: |
- tox -e clean -v
- tox -e py311 -v
- tox -e report -v
- tox -e codecov -v
+ - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0
+ with:
+ fetch-depth: 0
+ - uses: astral-sh/setup-uv@fac544c07dec837d0ccb6301d7b5580bf5edae39
+ with:
+ python-version: '3.11'
+ - name: install graphviz system package
+ run: sudo apt-get update && sudo apt-get install -y graphviz
+ - name: install dependencies
+ run: uv sync --frozen
+ - name: run tests with coverage
+ run: uv run pytest --cov=edify --cov-report=xml
+ - name: upload coverage to codecov
+ uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f
+ with:
+ token: ${{ secrets.CODECOV_TOKEN }}
+ files: ./coverage.xml
+ fail_ci_if_error: true \ No newline at end of file
diff --git a/.github/workflows/github-actions.yml b/.github/workflows/github-actions.yml
index 24a45eb..2f4c9e5 100644
--- a/.github/workflows/github-actions.yml
+++ b/.github/workflows/github-actions.yml
@@ -10,185 +10,43 @@ jobs:
matrix:
include:
- name: 'check'
- python: '3.9'
- toxpython: 'python3.9'
- tox_env: 'check'
+ python: '3.11'
+ command: 'uv run ruff check . && uv run ruff format --check .'
os: 'ubuntu-latest'
- name: 'docs'
- python: '3.9'
- toxpython: 'python3.9'
- tox_env: 'docs'
- os: 'ubuntu-latest'
- - name: 'py38 (ubuntu)'
- python: '3.8'
- toxpython: 'python3.8'
- python_arch: 'x64'
- tox_env: 'py38'
- os: 'ubuntu-latest'
- - name: 'py38 (windows)'
- python: '3.8'
- toxpython: 'python3.8'
- python_arch: 'x64'
- tox_env: 'py38'
- os: 'windows-latest'
- - name: 'py38 (macos)'
- python: '3.8'
- toxpython: 'python3.8'
- tox_env: 'py38'
- os: 'macos-latest'
- - name: 'py39 (ubuntu)'
- python: '3.9'
- toxpython: 'python3.9'
- python_arch: 'x64'
- tox_env: 'py39'
- os: 'ubuntu-latest'
- - name: 'py39 (windows)'
- python: '3.9'
- toxpython: 'python3.9'
- python_arch: 'x64'
- tox_env: 'py39'
- os: 'windows-latest'
- - name: 'py39 (macos)'
- python: '3.9'
- toxpython: 'python3.9'
- tox_env: 'py39'
- os: 'macos-latest'
- - name: 'py310 (ubuntu)'
- python: '3.10'
- toxpython: 'python3.10'
- python_arch: 'x64'
- tox_env: 'py310'
- os: 'ubuntu-latest'
- - name: 'py310 (windows)'
- python: '3.10'
- toxpython: 'python3.10'
- python_arch: 'x64'
- tox_env: 'py310'
- os: 'windows-latest'
- - name: 'py310 (macos)'
- python: '3.10'
- toxpython: 'python3.10'
- tox_env: 'py310'
- os: 'macos-latest'
- - name: 'py311 (ubuntu)'
python: '3.11'
- toxpython: 'python3.11'
- python_arch: 'x64'
- tox_env: 'py311'
+ command: 'uv run --group docs sphinx-build -b html docs dist/docs && uv run --group docs sphinx-build -b linkcheck docs dist/docs'
os: 'ubuntu-latest'
- - name: 'py311 (windows)'
- python: '3.11'
- toxpython: 'python3.11'
- python_arch: 'x64'
- tox_env: 'py311'
- os: 'windows-latest'
- - name: 'py311 (macos)'
+ - name: 'py311 (ubuntu)'
python: '3.11'
- toxpython: 'python3.11'
- tox_env: 'py311'
- os: 'macos-latest'
- - name: 'pypy310 (ubuntu)'
- python: 'pypy-3.10'
- toxpython: 'pypy3.10'
- python_arch: 'x64'
- tox_env: 'pypy310'
+ command: 'uv run pytest'
os: 'ubuntu-latest'
- - name: 'pypy310 (windows)'
- python: 'pypy-3.10'
- toxpython: 'pypy3.10'
- python_arch: 'x64'
- tox_env: 'pypy310'
- os: 'windows-latest'
- - name: 'pypy310 (macos)'
- python: 'pypy-3.10'
- toxpython: 'pypy3.10'
- tox_env: 'pypy310'
- os: 'macos-latest'
- name: 'pypy311 (ubuntu)'
python: 'pypy-3.11'
- toxpython: 'pypy3.11'
- python_arch: 'x64'
- tox_env: 'pypy311'
+ command: 'uv run pytest'
os: 'ubuntu-latest'
- - name: 'pypy311 (windows)'
- python: 'pypy-3.11'
- toxpython: 'pypy3.11'
- python_arch: 'x64'
- tox_env: 'pypy311'
- os: 'windows-latest'
- - name: 'pypy311 (macos)'
- python: 'pypy-3.11'
- toxpython: 'pypy3.11'
- tox_env: 'pypy311'
- os: 'macos-latest'
- name: 'py312 (ubuntu)'
python: '3.12'
- toxpython: 'python3.12'
- python_arch: 'x64'
- tox_env: 'py312'
+ command: 'uv run pytest'
os: 'ubuntu-latest'
- - name: 'py312 (windows)'
- python: '3.12'
- toxpython: 'python3.12'
- python_arch: 'x64'
- tox_env: 'py312'
- os: 'windows-latest'
- - name: 'py312 (macos)'
- python: '3.12'
- toxpython: 'python3.12'
- tox_env: 'py312'
- os: 'macos-latest'
- name: 'py313 (ubuntu)'
python: '3.13'
- toxpython: 'python3.13'
- python_arch: 'x64'
- tox_env: 'py313'
+ command: 'uv run pytest'
os: 'ubuntu-latest'
- - name: 'py313 (windows)'
- python: '3.13'
- toxpython: 'python3.13'
- python_arch: 'x64'
- tox_env: 'py313'
- os: 'windows-latest'
- - name: 'py313 (macos)'
- python: '3.13'
- toxpython: 'python3.13'
- tox_env: 'py313'
- os: 'macos-latest'
- name: 'py314 (ubuntu)'
python: '3.14'
- toxpython: 'python3.14'
- python_arch: 'x64'
- tox_env: 'py314'
+ command: 'uv run pytest'
os: 'ubuntu-latest'
- - name: 'py314 (windows)'
- python: '3.14'
- toxpython: 'python3.14'
- python_arch: 'x64'
- tox_env: 'py314'
- os: 'windows-latest'
- - name: 'py314 (macos)'
- python: '3.14'
- toxpython: 'python3.14'
- tox_env: 'py314'
- os: 'macos-latest'
steps:
- - uses: actions/checkout@v5
- with:
- fetch-depth: 0
- - uses: actions/setup-python@v5
- with:
- python-version: ${{ matrix.python }}
- architecture: ${{ matrix.python_arch }}
- - name: install dependencies
- run: |
- python -mpip install --progress-bar=off -r ci/requirements.txt
- virtualenv --version
- pip --version
- tox --version
- pip list --format=freeze
- - name: test
- env:
- TOXPYTHON: '${{ matrix.toxpython }}'
- run: >
- tox -e ${{ matrix.tox_env }} -v
+ - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0
+ with:
+ fetch-depth: 0
+ - uses: astral-sh/setup-uv@fac544c07dec837d0ccb6301d7b5580bf5edae39
+ with:
+ python-version: ${{ matrix.python }}
+ - name: install graphviz system package
+ run: sudo apt-get update && sudo apt-get install -y graphviz
+ - name: install dependencies
+ run: uv sync --frozen --all-groups
+ - name: ${{ matrix.name }}
+ run: ${{ matrix.command }} \ No newline at end of file