diff --git a/.github/workflows/checks.yaml b/.github/workflows/checks.yaml index 5a38847..e298cbf 100644 --- a/.github/workflows/checks.yaml +++ b/.github/workflows/checks.yaml @@ -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 @@ -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 }} @@ -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]" @@ -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