Skip to content

feat: wip: setup github actions #9

feat: wip: setup github actions

feat: wip: setup github actions #9

name: Build & Test
on: [push]
env:
SMTP_HOST: localhost
SMTP_PORT: 1025
MEMCACHED_HOST: localhost
REDIS_HOST: localhost
jobs:
comply:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ConorMacBride/install-package@v1
with:
apt: libmemcached-dev
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.x"
architecture: "x64"
- name: Setup PDM
uses: pdm-project/setup-pdm@v4
- name: Install dependencies
run: pdm install
- name: Make Comply
run: make comply
test:
needs: comply
runs-on: ${{ matrix.os }}
strategy:
matrix:
# FIXME ?
# os: [ubuntu-latest, macos-latest, windows-latest]
os: [ubuntu-latest]
# python-version: ["3.8", "3.9", "3.11", "3.12", "3.13", "pypy3.10"]
python-version: ["3.13"]
# exclude:
# - os: macos-latest
# python-version: "3.11"
# - os: windows-latest
# python-version: "3.11"
steps:
- uses: actions/checkout@v4
- uses: ConorMacBride/install-package@v1
with:
apt: libmemcached-dev
# - uses: niden/actions-memcached@v7
# - uses: supercharge/redis-github-action@1.7.0
# - uses: stanleymasinde/mailpit-action
- uses: hoverkraft-tech/compose-action@v2.0.1
with:
compose-file: "./docker/compose-services-only.yml"
- name: Setup PDM
uses: pdm-project/setup-pdm@v4
- name: Install dependencies
run: pdm install
- name: Make Test
run: make test
# build:
# runs-on: ${{ matrix.os }}
# strategy:
# matrix:
# os: [ubuntu-latest, macos-latest, windows-latest]
# python-version: ["3.9", "3.11", "3.13", "pypy3.10"]
# exclude:
# - os: macos-latest
# python-version: "3.11"
# - os: windows-latest
# python-version: "3.11"