Skip to content

Commit

Permalink
Fix test action
Browse files Browse the repository at this point in the history
  • Loading branch information
pablormier committed Apr 24, 2024
1 parent fe9649d commit 00dac30
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 7 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Build and Deploy Docs

on:
push:
branches:
- main
- dev

jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.9'

- name: Install Dependencies
run: |
pip install poetry
poetry install
- name: Build Docs
run: |
cd docs
poetry run make html
- name: Prepare Deployment
run: |
touch _build/html/.nojekyll
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/_build/html
destination_dir: ${{ github.ref == 'refs/heads/main' ? '' : 'dev' }}
8 changes: 1 addition & 7 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,6 @@ jobs:
run: |
pip install poetry
poetry install
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest
run: |
pytest
poetry run pytest

0 comments on commit 00dac30

Please sign in to comment.