Update CI/CD pipelines Part 1 #5234
Workflow file for this run
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: darts PR workflow | |
on: | |
pull_request: | |
branches: | |
- master | |
jobs: | |
tests: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [macos-13] | |
python-version: ['3.9'] | |
flavour: ['all'] | |
steps: | |
- name: "1. Clone repository" | |
uses: actions/checkout@v2 | |
- name: "2. Set up Python ${{ matrix.python-version }}" | |
uses: actions/setup-python@v1 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: "3. Install dependencies" | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements/dev-all.txt | |
- name: "4. Install libomp (for LightGBM)" | |
run: | | |
. /.github/scripts/libomp-${{ runner.os }}.sh | |
- name: "5. Attach cache for pip" | |
uses: actions/cache@v1 | |
id: cache | |
with: | |
path: ~/.cache/pip | |
key: tests-${{ runner.os }}-${{ matrix.python-version }}-pip-${{ hashFiles('requirements-latest.txt') }} | |
- name: "6. Run tests" | |
run: | | |
pytest . |