Updates to requirements.txt #32
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v3 | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: "3.12" | |
| - name: Install Poetry | |
| run: | | |
| curl -sSL https://install.python-poetry.org | python3 - | |
| echo "$HOME/.local/bin" >> $GITHUB_PATH | |
| - name: Cache Poetry virtualenv | |
| uses: actions/cache@v3 | |
| with: | |
| path: ~/.cache/pypoetry/virtualenvs | |
| key: poetry-${{ runner.os }}-${{ hashFiles('poetry.lock') }} | |
| restore-keys: | | |
| poetry-${{ runner.os }}- | |
| - name: Install dependencies with dev extras | |
| run: poetry install --with dev | |
| - name: Run unit tests | |
| run: poetry run pytest | |
| # Will add notebooks to test later | |
| #- name: Run notebook tests (nbval) | |
| # run: | | |
| # if ls *.ipynb >/dev/null 2>&1; then | |
| # poetry run pytest --nbval | |
| # else | |
| # echo "No notebooks to test." | |
| # fi | |
| #- name: Upload coverage to Codecov | |
| # uses: codecov/codecov-action@v4 | |
| # with: | |
| # token: ${{ secrets.CODECOV_TOKEN }} | |
| # files: ./coverage.xml |