[Snyk] Security upgrade werkzeug from 2.2.3 to 3.0.6 #34
This file contains 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 testing | |
# see: https://help.github.com/en/actions/reference/events-that-trigger-workflows | |
on: | |
# Trigger the workflow on push or pull request, but only for the master branch | |
push: | |
branches: [main] | |
pull_request: {} | |
jobs: | |
pytest: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-22.04, macOS-12] | |
python-version: [3.8] | |
# Timeout: https://stackoverflow.com/a/59076067/4521646 | |
timeout-minutes: 35 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
env: | |
TORCH_URL: https://download.pytorch.org/whl/cpu/torch_stable.html | |
run: | | |
python --version | |
pip --version | |
pip install -r requirements.txt --upgrade --quiet --find-links $TORCH_URL | |
bash dev_install.sh | |
pip install -r requirements/test.txt --quiet | |
pip list | |
shell: bash | |
- name: Tests | |
env: | |
BOT_TOKEN: ${{secrets.BOT_TOKEN}} | |
SLACK_TOKEN: ${{secrets.SLACK_TOKEN}} | |
SIGNING_SECRET: ${{secrets.SIGNING_SECRET}} | |
SLACK_CLIENT_ID: ${{secrets.SLACK_CLIENT_ID}} | |
CLIENT_SECRET: ${{secrets.CLIENT_SECRET}} | |
run: coverage run --source muse -m pytest muse tests -v | |
- name: Statistics | |
if: success() | |
run: coverage report |