Skip to content

Add CI with GH Actions. #20

Add CI with GH Actions.

Add CI with GH Actions. #20

Workflow file for this run

name: CI
on:
push:
pull_request:
schedule:
- cron: "0 0 1 * *" # run monthly
jobs:
build:
runs-on: ubuntu-20.04
container:
image: python:2.7.18-buster
env:
APP_NAME: PIQMIe
APP_CONFIG: config.ini
APP_BASE_URL: http://127.0.0.1:8080
APP_DATA: a000000000000000000000000000000000000001
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Install apt packages
run: |
apt update && apt install -y sqlite jq
- name: Check software versions
run: |
python --version
sqlite3 --version
jq --version
curl --version
- name: Install python deps
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip list
- name: Update app config path
run: |
pwd
ls
sed -i.org "s:/home/user:${{ github.workspace }}:" ${{ env.APP_CONFIG }}
cat ${{ env.APP_CONFIG }}
- name: Unzip data
working-directory: ./data
run: |
tar xvf *.tar.bz2
- name: Info
run: |
pwd