This repository was archived by the owner on Jul 7, 2024. It is now read-only.
Add Python 3.10 in workflows #269
This file contains hidden or 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: | |
- master | |
pull_request: | |
schedule: | |
- cron: '0 12 * * *' | |
jobs: | |
build: | |
strategy: | |
matrix: | |
python: | |
- "3.10" | |
platform: ["ubuntu-latest", "macos-latest"] | |
runs-on: ${{ matrix.platform }} | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Checkout submodules | |
shell: bash | |
run: | | |
git config --global url."https://github.com/".insteadOf "[email protected]:" | |
auth_header="$(git config --local --get http.https://github.com/.extraheader)" | |
git submodule sync --recursive | |
git -c "http.extraheader=$auth_header" -c protocol.version=2 submodule update --init --force --recursive --depth=1 | |
- uses: actions/setup-python@v1 | |
with: | |
python-version: ${{ matrix.python }} | |
- name: build | |
run: python3 setup.py build | |
- name: test | |
run: | | |
pip3 install .[dev] | |
pytest |