Skip to content

Fix 2022

Fix 2022 #11

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: Pull Request Checker
on:
pull_request:
types: [opened, synchronize]
workflow_dispatch:
jobs:
PR-Checker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3.5.2
- uses: dorny/paths-filter@v2
id: filter
with:
filters: |
package:
- 'pyesios/**'
tests:
- 'tests/**'
- name: Set up Python 3.9
uses: actions/setup-python@v4.6.0
with:
python-version: '3.9'
- name: Install dependencies
run: |
make init-dev
- name: Linting check
id: linting_check
if: ${{steps.filter.outputs.package == 'true' }} || ${{steps.filter.outputs.tests == 'true' }}
run: |
make check
- name: Test with pytest
id: pytest_test
if: ${{steps.filter.outputs.package == 'true' }} || ${{steps.filter.outputs.tests == 'true' }}
env:
ESIOS_API_TOKEN: ${{ secrets.ESIOS_API_TOKEN }}
run: |
make test