chore(deps) Update all non-major dependencies #2313
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 | |
on: [push, pull_request] | |
jobs: | |
test: | |
name: π Python ${{ matrix.python-version }} on π₯οΈ ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }}-${{ matrix.python-version }}-${{ matrix.os }} | |
cancel-in-progress: true | |
strategy: | |
matrix: | |
os: [ubuntu-latest] #, macos-latest] | |
python-version: [3.8, 3.9, '3.10'] # 3.11 doesn't support lxml yet. | |
fail-fast: true | |
services: | |
redis: | |
image: redis | |
options: >- | |
--health-cmd "redis-cli ping" | |
--health-interval 10s | |
--health-timeout 5s | |
--health-retries 5 | |
ports: | |
- 6379:6379 | |
postgres: | |
image: postgres | |
env: | |
POSTGRES_PASSWORD: 12345 | |
options: >- | |
--health-cmd pg_isready | |
--health-interval 10s | |
--health-timeout 5s | |
--health-retries 5 | |
ports: | |
- 5432:5432 | |
steps: | |
- name: πΎ Checkout | |
uses: actions/checkout@v4 | |
- name: π§Ή Cleanup apt list | |
uses: christopherpickering/[email protected] | |
- name: β Setup node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
- name: π₯ Download deps | |
uses: bahmutov/npm-install@v1 | |
with: | |
useLockFile: false | |
- name: π Setup python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: πΆ Setup Poetry | |
uses: snok/install-poetry@v1 | |
- name: π₯ Install | |
run: | | |
sudo apt-get install libxml2-dev libxmlsec1-dev libxmlsec1-openssl pkg-config build-essential libssl-dev libffi-dev curl git wget libldap2-dev python3-dev python3-pip python3-setuptools unixodbc unixodbc-dev libpq-dev nginx sqlite3 libsqlite3-0 libsasl2-dev libxml2-dev libxmlsec1-dev libxmlsec1-dev redis-server ufw gnupg | |
poetry install -vvv | |
env: | |
PYTHONWARNINGS: ignore | |
- name: π½ Start test services | |
run: | | |
docker run -e "ACCEPT_EULA=Y" -e "SA_PASSWORD=@Passw0rd>" -p 1433:1433 --name sql1 -h sql1 -d mcr.microsoft.com/mssql/server:2017-latest | |
docker run -p 23:22 -d emberstack/sftp --name sftp | |
docker run -d --name ftpd_server -p 21:21 -p 30000-30009:30000-30009 -e FTP_USER_NAME=demo -e FTP_USER_PASS=demo -e FTP_USER_HOME=/home/demo -e "PUBLICHOST=localhost" -e "ADDED_FLAGS=-d -d" stilliard/pure-ftpd | |
- name: π§ͺ Run Test | |
run: poetry run tox | |
env: | |
POSTGRES_HOST: localhost | |
POSTGRES_PORT: 5432 | |
PGPASSWORD: 12345 | |
REDIS_HOST: localhost | |
REDIS_PORT: 6379 | |
- name: π€ Upload Coverage | |
uses: codecov/codecov-action@v3 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
files: ./coverage.xml | |
verbose: true |