ics: update release calendar #45
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: Test | |
permissions: | |
contents: read | |
pull-requests: read | |
on: | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- output/** | |
- "**.md" | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: [pypy3.10, "3.11", "3.12", "3.13"] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: get site-packages path | |
id: site_packages | |
run: echo "site_dir=$(python -c 'import site; print(site.getsitepackages()[0])')" > "$GITHUB_OUTPUT" | |
- name: cache installed packages | |
uses: actions/cache@v4 | |
with: | |
path: ${{ steps.site_packages.outputs.site_dir }} | |
key: ${{ runner.os }}-pip-${{ matrix.python-version }}-${{ hashFiles('**/requirements.txt') }} | |
restore-keys: ${{ runner.os }}-pip- | |
- name: install dependencies | |
run: | | |
if command -v pypy > /dev/null; then py=pypy; else py=python; fi | |
${py} -m pip install --upgrade pip | |
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | |
- name: execute py script | |
run: python cngal_calendar.py |