build #12
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: build | |
on: | |
# Triggers the workflow on push or pull request events but only for the main branch | |
push: | |
branches: [master] | |
pull_request: | |
branches: [master] | |
#: Run the test every week | |
schedule: | |
- cron: '0 12 1 * *' | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
python-version: ['3.10'] | |
os: [macos-latest] | |
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 | |
run: | | |
python -m pip install --upgrade pip | |
cd python | |
pip install -r requirements.txt | |
- name: Run tests | |
run: | | |
cd python | |
python -m unittest |