This repository has been archived by the owner on May 20, 2024. It is now read-only.
Final update to bump python dependency versions and change the Readme #264
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
# This workflow will install Python dependencies, run tests and lint with a single version of Python | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions | |
name: Python application | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
development_build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python 3.9 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.9 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
pip install -r requirements_dev.txt | |
- name: Lint with flake8 | |
run: flake8 ./ | |
- name: mypy | |
run: mypy ./osd2f/ --ignore-missing-imports | |
- name: Test with pytest | |
run: pytest ./ | |
- name: Install & do a dry run | |
run: | | |
pip install -e ./ | |
osd2f --dry-run | |
- name: Check config generation functionality | |
run: | | |
osd2f --generate-current-config cc.yaml | |
[ -s cc.yaml ] #check whether the file is not empty | |
- name: Run Jest | |
uses: stefanoeb/[email protected] | |
release_build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python 3.9 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.9 | |
- name: Install with plain pip | |
run: pip install ./ | |
- name: Do a dry run | |
run: osd2f --dry-run | |
docker_build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout files | |
uses: actions/checkout@v2 | |
- name: build Docker image | |
uses: docker/build-push-action@v2 | |
with: | |
file: Dockerfile | |
push: false | |
load: ${{ github.event_name == 'pull_request' }} | |
context: . | |
docker_test_build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout files | |
uses: actions/checkout@v2 | |
- name: build Docker image | |
uses: docker/build-push-action@v2 | |
with: | |
file: Dockerfile-test | |
push: false | |
load: ${{ github.event_name == 'pull_request' }} | |
context: . |