install.yaml 851 B

123456789101112131415161718192021222324252627282930
  1. name: Install
  2. on:
  3. schedule:
  4. # * is a special character in YAML so you have to quote this string
  5. - cron: '0 0 * * 3'
  6. jobs:
  7. test-pypi-install:
  8. runs-on: "${{ matrix.os }}"
  9. strategy:
  10. fail-fast: false
  11. matrix:
  12. os: ["ubuntu-latest", "macos-latest", "windows-latest"]
  13. python-version: [ "3.9", "3.10", "3.11" ]
  14. steps:
  15. - name: Set up Python "${{ matrix.python-version }}"
  16. id: setup-python
  17. uses: actions/setup-python@v4
  18. with:
  19. python-version: "${{ matrix.python-version }}"
  20. - name: Install
  21. run: |
  22. pip install --upgrade pip
  23. pip install unfccc-ghg-data
  24. - name: Checkout repository
  25. uses: actions/checkout@v3
  26. - name: Test installation (${{ matrix.os }} Python ${{ matrix.python-version }})
  27. run: |
  28. python scripts/test-install.py