Skip to content

ci: 💚 Downgrading poetry for build - Attempt 2 to fix odd… #7

ci: 💚 Downgrading poetry for build - Attempt 2 to fix odd…

ci: 💚 Downgrading poetry for build - Attempt 2 to fix odd… #7

Workflow file for this run

name: tests
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
run:
strategy:
matrix:
python-version: ["3.11"]
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install poetry
run: |
python -m pip install --upgrade pip poetry<1.4.0
poetry --version
poetry config virtualenvs.in-project true
poetry install
- name: Run tests
run: |
poetry run pytest --cov=xpublish_file_metadata --cov-report=xml
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}