Skip to content

Commit

Permalink
ci: Add daily scheduled GH workflow with test for pre-release versions (
Browse files Browse the repository at this point in the history
  • Loading branch information
mansenfranzen authored Apr 22, 2024
1 parent e8f7f06 commit a4c5140
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 26 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,20 +87,7 @@ jobs:
- name: Setup Test Environment and Run Tox
uses: ./.github/actions/invoke-tox
with:
tox-environment: no_erdantic

test-development:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Test Environment and Run Tox
uses: ./.github/actions/invoke-tox
with:
tox-environment: development
install-graphviz: true
continue-on-error: true
tox-environment: no-erdantic

linter:
runs-on: ubuntu-22.04
Expand Down
31 changes: 31 additions & 0 deletions .github/workflows/tests-scheduled.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Scheduled Tests
on:
schedule:
- cron: "0 1 * * *"

jobs:
test-latest:
environment: Tests
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Test Environment and Run Tox
uses: ./.github/actions/invoke-tox
with:
tox-environment: latest
install-graphviz: true

test-pre-release:
environment: Tests
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Test Environment and Run Tox
uses: ./.github/actions/invoke-tox
with:
tox-environment: pre-release
install-graphviz: true
29 changes: 17 additions & 12 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
[tox]
envlist = py{37,38,39,310,311,312}-pydantic{20,21,22,23,24,25,26,27,latest}-sphinx{40,45,53,62,70,71,72,73,latest}, latest, development, no_erdantic, linter
envlist =
py{37,38,39,310,311,312}-pydantic{20,21,22,23,24,25,26,27,latest}-sphinx{40,45,53,62,70,71,72,73,latest}
latest
pre-release
no-erdantic
linter
formatter
type-checker
isolated_build = True

[testenv]
Expand Down Expand Up @@ -73,20 +80,18 @@ extras =
docs
erdantic

[testenv:no_erdantic]
description = "Test without optional erdantic dependency"
[testenv:pre-release]
description = "Test the latest pre-release versions available from PyPI."
pip_pre = true
extras =
test
docs
erdantic

[testenv:development]
description = "Test the most recent development versions from git repositories."
deps =
git+https://github.com/samuelcolvin/pydantic.git
git+https://github.com/sphinx-doc/sphinx.git
git+https://github.com/executablebooks/sphinx-tabs.git
git+https://github.com/executablebooks/sphinx-copybutton.git
git+https://github.com/readthedocs/sphinx_rtd_theme.git
git+https://github.com/drivendataorg/erdantic.git
[testenv:no-erdantic]
description = "Test without optional erdantic dependency"
extras =
test

[testenv:linter]
description = "Run linters on the codebase."
Expand Down

0 comments on commit a4c5140

Please sign in to comment.