Skip to content

Commit

Permalink
fix up dev workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
bdpedigo committed Dec 15, 2023
1 parent 55ec22f commit 058da48
Show file tree
Hide file tree
Showing 3 changed files with 142 additions and 13 deletions.
39 changes: 27 additions & 12 deletions .github/workflows/dev.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Run tests and linting
name: dev workflow
name: Dev (formatting, tests, dev docs)

# Controls when the action will run.
on:
Expand All @@ -26,24 +26,39 @@ jobs:
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- name: Get repo
uses: actions/checkout@v2

- name: Checkout gh-pages branch (for docs)
run: |
git fetch origin gh-pages --depth=1
- name: List files
run: ls -l .

- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-versions }}

- name: Install Poetry
uses: snok/install-poetry@v1

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install tox tox-gh-actions pytest
run: poetry install --with dev

- name: list files
run: ls -l .
- name: Find tox
run: poetry run tox --version

- name: find tox
run: tox --version
- name: Run tox (includes tests, format, lint, docs)
run: poetry run tox -vv

- name: run tox
run: tox -vv
- name: Configure git for github-actions[bot]
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
- name: Build versioned docs with mike
run: |
poetry run mike deploy --push --update-aliases dev
poetry run mike set-default stable --push
115 changes: 114 additions & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ mypy = "^1.7.1"
pymdown-extensions = "^10.5"
pytest = "^7.4.3"
ruff = "^0.1.7"
tox = "^4.11.4"
twine = "^4.0.2"

[build-system]
Expand Down

0 comments on commit 058da48

Please sign in to comment.