Test #60
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: | |
schedule: | |
- cron: 0 0 1 * * # monthly | |
jobs: | |
test: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest] | |
python-version: [2.7, 3.5, 3.6, 3.7, 3.8, 3.9] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout the repository | |
uses: actions/checkout@v2 | |
- name: Set up Python for Poetry | |
uses: actions/setup-python@v2 | |
- name: Set up Poetry | |
uses: Gr1N/setup-poetry@v5 | |
- name: Set up Python for testing | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Set Python version called from Poetry | |
run: | | |
poetry env use ${{ matrix.python-version }} | |
poetry run python --version | |
- name: Try the script | |
run: poetry run python formset/formset.py | |
- name: Install dependencies | |
run: poetry install | |
- name: Run tests | |
run: poetry run pytest |