Update devops.yml #101
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/CD | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.8", "3.9", "3.10"] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v3 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Cache dependencies | |
uses: actions/cache@v3 | |
with: | |
path: ~/.cache/pip | |
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }} | |
restore-keys: | | |
${{ runner.os }}-pip- | |
- name: Install linting utilities & run them | |
run: | | |
python -m pip install --upgrade pip | |
pip install black[jupyter] | |
black --check . | |
- name: Install dependencies | |
run: | | |
make install | |
- name: Build Container | |
run: | | |
make build | |
- name: Run Container | |
env: | |
EMAIL: $EMAIL | |
run: | | |
make run_script | |
- name: Remove files | |
run: | | |
rm updated_data/sequence* |