Skip to content
This repository has been archived by the owner on Sep 2, 2024. It is now read-only.

Ensure proper use of class variables #2690

Ensure proper use of class variables

Ensure proper use of class variables #2690

Workflow file for this run

name: Code CI
on:
push:
pull_request:
schedule:
# Run every Monday at 8am to check latest versions of dependencies
- cron: "0 8 * * WED"
jobs:
lint:
# pull requests are a duplicate of a branch push if within the same repo.
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository
runs-on: ubuntu-latest
steps:
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
architecture: x64
- name: Checkout Artemis
uses: actions/checkout@v3
- name: Install flake8
run: pip install flake8
- name: Run flake8
uses: TrueBrain/actions-flake8@v2
with:
path: src
tests:
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install with latest dependencies
run: pip install -e .[dev]
- name: Run tests
run: pytest --random-order -m "not (dlstbx or s03)"
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
name: ${{ matrix.python }}/${{ matrix.os }}
files: cov.xml