Skip to content

Merge pull request #87 from Cassius0924/feat-docker-build–actions #123

Merge pull request #87 from Cassius0924/feat-docker-build–actions

Merge pull request #87 from Cassius0924/feat-docker-build–actions #123

Workflow file for this run

name: CI/CD
on:
push:
branches:
- master
pull_request:
branches:
- master
permissions:
contents: read
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python 3.8
uses: actions/setup-python@v4
with:
python-version: "3.8"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install ruff
- name: Run Ruff
run: ruff check --output-format=github .
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python 3.8
uses: actions/setup-python@v4
with:
python-version: "3.8"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Copy config file
run: |
cp config.yaml.example config.yaml
- name: Run test
run: |
python -m unittest discover -s tests