• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Build and test the python package
2name: Python build and test
3
4on:
5  push:
6    branches: [ main ]
7  pull_request:
8    branches: [ main ]
9
10permissions:
11  contents: read
12
13jobs:
14  build:
15
16    runs-on: ubuntu-latest
17
18    steps:
19    - uses: actions/checkout@v3
20    - name: Set up Python 3.10
21      uses: actions/setup-python@v3
22      with:
23        python-version: "3.10"
24    - name: Install dependencies
25      run: |
26        python -m pip install --upgrade pip
27        python -m pip install ".[test,development,documentation]"
28    - name: Test with pytest
29      run: |
30        pytest
31    - name: Build
32      run: |
33        inv build
34        inv mkdocs
35