Skip to content

Commit

Permalink
new workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
bdpedigo committed Dec 15, 2023
1 parent ff95bb3 commit 9edc3d5
Showing 1 changed file with 29 additions and 6 deletions.
35 changes: 29 additions & 6 deletions .github/workflows/dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,13 @@ jobs:
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: Get repo
uses: actions/checkout@v2

- name: Checkout gh-pages branch (for docs)
run: |
git fetch origin gh-pages --depth=1
uses: actions/checkout@v4

- name: List files
run: ls -l .

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

Expand All @@ -53,6 +49,33 @@ jobs:
- name: Run tox (includes tests, format, lint, docs)
run: poetry run tox -vv

docs:
name: Build and deploy (dev) docs
runs-on: ubuntu-latest

strategy:
matrix:
python-versions: [3.11]
os: [ubuntu-latest]

steps:
- name: Get repo
uses: actions/checkout@v4

# - name: Get gh-pages branch
# run: git fetch origin gh-pages --depth=1

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

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

- name: Install dependencies
run: poetry install --with dev

- name: Configure git for github-actions[bot]
run: |
git config --global user.name "github-actions[bot]"
Expand Down

0 comments on commit 9edc3d5

Please sign in to comment.