Skip to content

Commit

Permalink
Merge pull request #389 from opengisch/lint-test
Browse files Browse the repository at this point in the history
  • Loading branch information
suricactus authored Oct 24, 2023
2 parents 2c8b7e6 + 25b951e commit 84cb614
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 14 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/lint-and-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: lint-and-test

concurrency:
group: ${{ github.ref }}
cancel-in-progress: true

on:
pull_request:
push:
branches: [master]

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
- uses: pre-commit/[email protected]

test-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.10"
cache: "pip"

- name: Install Python requirements
run: pip install -r requirements.txt

- name: Build documentation
run: mkdocs build
env:
DEFAULT_LANGUAGE_ONLY: true
14 changes: 0 additions & 14 deletions .github/workflows/pre-commit.yml

This file was deleted.

1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ CairoSVG==2.7.1
cryptography==41.0.4
fancyboxmd==1.1.0
mkdocs-material==9.4.6
mkdocs-material-extensions==1.3
mkdocs-static-i18n==1.1.1
mkdocs-video==1.5.0
PyGithub==2.1.1
Expand Down

0 comments on commit 84cb614

Please sign in to comment.