Skip to content

Commit

Permalink
cicd: update actions + docs workflow from template
Browse files Browse the repository at this point in the history
  • Loading branch information
korikuzma authored Jul 12, 2024
1 parent 2cf9912 commit ca29128
Showing 1 changed file with 23 additions and 11 deletions.
34 changes: 23 additions & 11 deletions .github/workflows/checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
strategy:
matrix:
db_url: ["http://localhost:8000", "postgres://postgres:postgres@localhost:5432/gene_normalizer_test"]
python-version: ['3.10', '3.11', '3.12']
python-version: ["3.10", "3.11", "3.12"]
services:
postgres:
image: postgres:14
Expand All @@ -24,10 +24,10 @@ jobs:
GENE_NORM_DB_URL: ${{ matrix.db_url }}
GENE_TEST: true
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

Expand All @@ -46,16 +46,17 @@ jobs:
./tests/unit/dynamodb_build.bash
- name: Run tests
run: python3 -m pytest tests/
run: python3 -m pytest

lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: 3.11
python-version: "3.11"

- name: Install dependencies
run: python3 -m pip install ".[dev]"
Expand All @@ -65,10 +66,21 @@ jobs:

docs:
runs-on: ubuntu-latest
env:
SPHINX_GITHUB_CHANGELOG_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: ammaraskar/sphinx-action@master
- name: Set up Python
uses: actions/setup-python@v5
with:
pre-build-command: 'python3 -m pip install --upgrade pip && python3 -m pip install .[docs]'
docs-folder: "docs/"
python-version: 3.11

- name: Install dependencies
run: |
python3 -m pip install --upgrade pip
python3 -m pip install '.[docs]'
- name: Attempt docs build
working-directory: ./docs
run: make html

0 comments on commit ca29128

Please sign in to comment.