diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 44db8b6..283f18e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -19,10 +19,10 @@ jobs: steps: - uses: actions/checkout@v2 - - name: Set up Python "3.8" + - name: Set up Python "3.12" uses: actions/setup-python@v2 with: - python-version: "3.8" + python-version: "3.12" - name: Install dependencies run: | python -m pip install --upgrade pip diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 7e6af07..4016621 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -15,10 +15,10 @@ jobs: steps: - uses: actions/checkout@v2 - - name: Set up Python 3.8 + - name: Set up Python 3.12 uses: actions/setup-python@v2 with: - python-version: '3.8' + python-version: "3.12" - name: Install symd run: | sudo apt-get install libgsl-dev cmake diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..e0077d6 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,38 @@ + +name: test + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + + +jobs: + docs: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Set up Python 3.12 + uses: actions/setup-python@v2 + with: + python-version: "3.12" + - name: Install symd + run: | + sudo apt-get install libgsl-dev cmake + mkdir build && cd build && cmake .. && make && sudo make install + - name: Install dependencies + working-directory: python + run: | + python -m pip install --upgrade pip + if [ -f dev-requirements.txt ]; then pip install -r dev-requirements.txt; fi + - name: Install + working-directory: python + run: | + pip install . && pip install -r docs/requirements.txt + - name: Run tests + working-directory: python + run: | + pytest \ No newline at end of file