This repository has been archived by the owner on Jun 23, 2024. It is now read-only.
Update test-suite.yml #116
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 Suite | |
on: | |
push: | |
branches: ["main"] | |
pull_request: | |
branches: ["main"] | |
jobs: | |
tests: | |
name: "Python ${{ matrix.python-version }}" | |
runs-on: "ubuntu-latest" | |
strategy: | |
matrix: | |
python-version: ["3.9"] | |
fail-fast: false | |
steps: | |
- uses: "actions/checkout@v2" | |
- uses: "actions/setup-python@v2" | |
with: | |
python-version: "${{ matrix.python-version }}" | |
- name: "Install Poetry" | |
run: | | |
"python -m pip install poetry" | |
"poetry lock --no-update" | |
- name: "Install dependencies" | |
run: "python -m poetry install" | |
- name: "Run tests" | |
run: "python -m poetry run pytest --cov=leetcomp" |