Skip to content

Commit

Permalink
chore: use GHA to test python versions and build documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
azmeuk committed Dec 8, 2023
1 parent 72dd301 commit 6e1d35a
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 4 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/Check_local_run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,22 @@ jobs:
test-local:
name: Run test locally
runs-on: ubuntu-latest
strategy:
matrix:
python:
- '3.11'
- '3.10'
- '3.9'
- '3.8'

steps:
- name: Setup git
uses: actions/checkout@v3

- name: Setup python
uses: actions/setup-python@v4
with:
python-version: 3.9
python-version: ${{ matrix.python }}

- name: Install python dependencies
run: |
Expand Down
37 changes: 37 additions & 0 deletions .github/workflows/Documentation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
---
name: Documentation
on:
push:
branches:
- production
- main
pull_request:
branches:
- production
- main
jobs:
tests:
name: ${{ matrix.python }}
runs-on: ubuntu-latest
strategy:
fail-fast: false

steps:
- uses: actions/checkout@v3

- uses: actions/setup-python@v4
with:
python-version: 3.11

- uses: actions/cache@v1
with:
path: ~/.cache/pip
key: pip|${{ hashFiles('web/requirements.doc.txt') }}

- name: Install python dependencies
run: |
python -m pip install --upgrade pip
pip install -r web/requirements.doc.txt
- name: Run unit tests
run: sphinx-build documentation build/sphinx/html
6 changes: 3 additions & 3 deletions .github/workflows/Test_coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ name: Check coverage
on:
pull_request:
branches:
- master
- production
- main
push:
branches:
- master
- production
- main

jobs:
Expand All @@ -21,7 +21,7 @@ jobs:
- name: Setup python
uses: actions/setup-python@v4
with:
python-version: 3.9
python-version: 3.11

- name: Switch to main branch
uses: actions/checkout@v3
Expand Down

0 comments on commit 6e1d35a

Please sign in to comment.