Skip to content

Running tests on "refs/heads/main" by "leomaurodesenv" #13

Running tests on "refs/heads/main" by "leomaurodesenv"

Running tests on "refs/heads/main" by "leomaurodesenv" #13

name: "Continuous Integration"
run-name: Running tests on "${{ github.ref }}" by "${{ github.actor }}"
on:
push:
workflow_dispatch:
schedule:
- cron: "0 12 1 * *"
jobs:
# Run pre-commit hooks
pre-commit:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.10"
cache: "pip" # caching pip dependencies
- run: pip install -r requirements.txt
- run: pre-commit run --all-files
# Run tests
tests:
needs: [pre-commit]
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.10"
cache: "pip" # caching pip dependencies
- run: pip install -r requirements.txt
- run: cd source && python -m luigi --module test Tests --local-scheduler