Bugfix/fix ci #107
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: ci | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
paths: | |
- .github/workflows/** | |
- src/** | |
- setup.cfg | |
- tox.ini | |
jobs: | |
test: | |
name: test ${{ matrix.py }} - ${{ matrix.os }} | |
runs-on: ${{ matrix.os }}-latest | |
timeout-minutes: 10 | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
- ubuntu | |
# - Windows | |
# - MacOs | |
py: | |
- "3.12.0" | |
- "3.11" | |
- "3.10" | |
- "3.9" | |
- "3.8" | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v4 | |
- name: Setup Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.py }} | |
- name: Install docker compose plugin | |
if: runner.os == 'Linux' | |
run: sudo apt-get install docker-compose-plugin | |
- name: Docker compose up | |
run: make docker-compose-up | |
- name: Setup | |
run: make setup | |
- name: Test | |
run: make test | |
- name: Stop | |
if: always() | |
run: make docker-compose-down |