Inkycal/.github/workflows/tests.yml
Workflow config file is invalid. Please check your config file: yaml: unmarshal errors: line 17: cannot unmarshal !!seq into model.Job line 34: cannot unmarshal !!seq into model.Job
2023-01-11 22:58:03 +01:00

40 lines
957 B
YAML

name: Python application
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Set up Python 3.9
uses: actions/setup-python@v1
with:
python-version: 3.9
download and install:
- name: Clone repo
run: |
git clone --branch feature/venv --single-branch https://github.com/aceisace/Inkycal
- name: Creating virtual evvironment
run: |
cd Inkycal
python3 -m venv venv
source venv/bin/activate
python -m pip install --upgrade pip
- name: Install dependencies
run: |
pip install wheel
pip install -e ./
unit testing:
- name: Setup test environment and run tests
run: |
cd inkycal/tests
echo "${{ secrets.ENV_FILE }}" > .env
wget https://raw.githubusercontent.com/aceisace/Inkycal/assets/tests/settings.json
for f in *.py; do python3 "$f"; done