Skip to content

Github Actions: add Python 3.13 #53

Github Actions: add Python 3.13

Github Actions: add Python 3.13 #53

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: Python tests
on: [ push, pull_request ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.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: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -r requirements-tests.txt
- name: Lint with flake8 (essentials)
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
- run: pip install .
- run: upload_to_s3 --help
- name: Test with pytest
env:
AWS_ACCESS_KEY_ID: "${{ secrets.TEST_AWS_ACCESS_KEY_ID }}"
AWS_SECRET_ACCESS_KEY: "${{ secrets.TEST_AWS_SECRET_ACCESS_KEY }}"
AWS_DEFAULT_REGION: eu-central-1
TEST_AWS_S3_PREFIX: "${{ secrets.TEST_AWS_S3_PREFIX }}"
run: |
python -m pytest -vvv --tb=native tests
- name: Lint with flake8 (full)
run: |
flake8 . --count --statistics