diff --git a/.github/workflows/fly.yml b/.github/workflows/deploy.yml similarity index 100% rename from .github/workflows/fly.yml rename to .github/workflows/deploy.yml diff --git a/.github/workflows/validate_materials.yml b/.github/workflows/validate_materials.yml new file mode 100644 index 0000000..b90ff95 --- /dev/null +++ b/.github/workflows/validate_materials.yml @@ -0,0 +1,27 @@ +name: Validate Materials + +on: + push: + +jobs: + validate: + runs-on: ubuntu-latest + + steps: + - name: Check out the repository + uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: '3.10' + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + + - name: Run validation script + run: | + export PYTHONPATH=$(pwd) # Adiciona o diretório raiz ao PYTHONPATH + python curadoria_coletiva/validate_materials.py