Update devops.yml #79
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 dependencies | |
run: | | |
make install | |
continue-on-error: false | |
- name: Lint code | |
run: | | |
make lint | |
- name: Build Container | |
run: | | |
make build | |
- name: Run Container | |
env: | |
EMAIL: ${{ secrets.EMAIL }} | |
run: | | |
make run_script | |
- name: Upload artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: sequence-files | |
path: updated_data/sequence* | |
- name: Remove files | |
run: | | |
rm updated_data/sequence* |