diff --git a/.github/workflows/flags.yml b/.github/workflows/flags.yml new file mode 100644 index 00000000..34a51046 --- /dev/null +++ b/.github/workflows/flags.yml @@ -0,0 +1,16 @@ +name: Test Flags + +on: pull_request + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Setup Python + uses: actions/setup-python@v4.0.0 + with: + python-version: '3.x' + architecture: 'x64' + - name: Test flags + run: python flags.py diff --git a/flags.py b/flags.py index 75d0ed3c..da26e585 100644 --- a/flags.py +++ b/flags.py @@ -35,3 +35,5 @@ for code in country_codes: if all_good: print("All flag icons and country.json are in sync.") + exit(0) +exit(1)