Skip to content
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
214 changes: 107 additions & 107 deletions .cirrus.yml
Original file line number Diff line number Diff line change
@@ -1,74 +1,74 @@
Lint_task:
container: &linux
image: python:3.14-slim
cpu: 1
memory: 512Mi
install_script:
- pip install -U --upgrade-strategy eager pip 'setuptools>61'
- pip install .
- pip install .[lint] .[test]
script:
- ruff --version
- mypy --version
- bork run lint

Linux_task:
container:
cpu: 1
memory: 512Mi
matrix:
- image: python:3.11-slim
- image: python:3.12-slim
- image: python:3.13-slim
- image: python:3.14-slim
install_script:
- apt-get update
- apt-get install -y git
- pip install -U --upgrade-strategy eager pip 'setuptools>61'
- pip install . .[test]
version_script:
- python3 --version
matrix:
- alias: Linux quick
script: bork run test-fast
- alias: Linux slow
depends_on: [Linux quick]
script: bork run test-slow
always:
upload_results_artifacts:
path: ./bork-junit.xml
format: junit
type: text/xml

macOS_task:
alias: macOS tests
macos_instance:
cpu: 1
image: ghcr.io/cirruslabs/macos-runner:sonoma
env:
PATH: ${HOME}/.pyenv/shims:${PATH}
PYTHON: "3.14"
brew_update_script:
- brew update
brew_install_script:
# Per the pyenv homebrew recommendations.
# https://github.com/pyenv/pyenv/wiki#suggested-build-environment
- brew install pyenv git
pyenv_install_script:
- pyenv install ${PYTHON}
- pyenv global ${PYTHON}
- pyenv rehash
pip_install_script:
- pip install -U --upgrade-strategy eager pip 'setuptools>61'
- pip install .[test]
script:
- python3 --version
- bork run test
always:
upload_results_artifacts:
path: ./bork-junit.xml
format: junit
type: text/xml
#Lint_task:
# container: &linux
# image: python:3.14-slim
# cpu: 1
# memory: 512Mi
# install_script:
# - pip install -U --upgrade-strategy eager pip 'setuptools>61'
# - pip install .
# - pip install .[lint] .[test]
# script:
# - ruff --version
# - mypy --version
# - bork run lint
#
#Linux_task:
# container:
# cpu: 1
# memory: 512Mi
# matrix:
# - image: python:3.11-slim
# - image: python:3.12-slim
# - image: python:3.13-slim
# - image: python:3.14-slim
# install_script:
# - apt-get update
# - apt-get install -y git
# - pip install -U --upgrade-strategy eager pip 'setuptools>61'
# - pip install . .[test]
# version_script:
# - python3 --version
# matrix:
# - alias: Linux quick
# script: bork run test-fast
# - alias: Linux slow
# depends_on: [Linux quick]
# script: bork run test-slow
# always:
# upload_results_artifacts:
# path: ./bork-junit.xml
# format: junit
# type: text/xml
#
#macOS_task:
# alias: macOS tests
# macos_instance:
# cpu: 1
# image: ghcr.io/cirruslabs/macos-runner:sonoma
# env:
# PATH: ${HOME}/.pyenv/shims:${PATH}
# PYTHON: "3.14"
# brew_update_script:
# - brew update
# brew_install_script:
# # Per the pyenv homebrew recommendations.
# # https://github.com/pyenv/pyenv/wiki#suggested-build-environment
# - brew install pyenv git
# pyenv_install_script:
# - pyenv install ${PYTHON}
# - pyenv global ${PYTHON}
# - pyenv rehash
# pip_install_script:
# - pip install -U --upgrade-strategy eager pip 'setuptools>61'
# - pip install .[test]
# script:
# - python3 --version
# - bork run test
# always:
# upload_results_artifacts:
# path: ./bork-junit.xml
# format: junit
# type: text/xml

FreeBSD_task:
alias: FreeBSD tests
Expand All @@ -89,42 +89,42 @@ FreeBSD_task:
format: junit
type: text/xml

Windows_task:
windows_container:
image: cirrusci/windowsservercore:2019
env:
matrix:
- PYTHON: 3.11.9
- PYTHON: 3.12.10
- PYTHON: 3.13.9
- PYTHON: 3.14.0
python_install_script:
# https://docs.python.org/3.6/using/windows.html#installing-without-ui
- ps: Invoke-WebRequest -Uri https://www.python.org/ftp/python/${env:PYTHON}/python-${env:PYTHON}-amd64.exe -OutFile C:\python-installer.exe
- C:\python-installer.exe /quiet TargetDir=C:\Python SimpleInstall=1
install_script:
- C:\Python\python.exe -m pip install -U --upgrade-strategy eager pip "setuptools>61"
- C:\Python\python.exe -m pip install .[test]
version_info_script:
- C:\Python\python.exe --version
test_script:
- C:\Python\python.exe -m pytest --verbose
always:
upload_results_artifacts:
path: ./bork-junit.xml
format: junit
type: text/xml

success_task:
name: CI success
container: *linux
depends_on:
- FreeBSD tests
- Linux quick
- Linux slow
- macOS tests
- Lint
- Windows
#Windows_task:
# windows_container:
# image: cirrusci/windowsservercore:2019
# env:
# matrix:
# - PYTHON: 3.11.9
# - PYTHON: 3.12.10
# - PYTHON: 3.13.9
# - PYTHON: 3.14.0
# python_install_script:
# # https://docs.python.org/3.6/using/windows.html#installing-without-ui
# - ps: Invoke-WebRequest -Uri https://www.python.org/ftp/python/${env:PYTHON}/python-${env:PYTHON}-amd64.exe -OutFile C:\python-installer.exe
# - C:\python-installer.exe /quiet TargetDir=C:\Python SimpleInstall=1
# install_script:
# - C:\Python\python.exe -m pip install -U --upgrade-strategy eager pip "setuptools>61"
# - C:\Python\python.exe -m pip install .[test]
# version_info_script:
# - C:\Python\python.exe --version
# test_script:
# - C:\Python\python.exe -m pytest --verbose
# always:
# upload_results_artifacts:
# path: ./bork-junit.xml
# format: junit
# type: text/xml
#
#success_task:
# name: CI success
# container: *linux
# depends_on:
# - FreeBSD tests
# - Linux quick
# - Linux slow
# - macOS tests
# - Lint
# - Windows

# If bork/version.py is modified on the main branch, make a release.
#Release_task:
Expand Down
1 change: 0 additions & 1 deletion .github/BORK_RELEASE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{project_name} {tag} is now available!

PyPI package: https://pypi.org/project/bork/{version}/
Docker image: https://hub.docker.com/r/duckinator/bork/

You can help {project_name} by supporting me on [GitHub Sponsors](https://github.com/sponsors/duckinator)!

Expand Down