Running tests on "refs/heads/main" by "leomaurodesenv" #13
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
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 |